Hugh Dickins 1e8352784a percpu: fix DEBUG_PREEMPT per_cpu checking
2.6.25-rc1 percpu changes broke CONFIG_DEBUG_PREEMPT's per_cpu checking
on several architectures.  On s390, sparc64 and x86 it's been weakened to
not checking at all; whereas on powerpc64 it's become too strict, issuing
warnings from __raw_get_cpu_var in io_schedule and init_timer for example.

Fix this by weakening powerpc's __my_cpu_offset to use the non-checking
local_paca instead of get_paca (which itself contains such a check);
and strengthening the generic my_cpu_offset to go the old slow way via
smp_processor_id when CONFIG_DEBUG_PREEMPT (debug_smp_processor_id is
where all the knowledge of what's correct when lives).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Reviewed-by: Mike Travis <travis@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-23 12:09:28 -08:00
..
2008-01-28 23:58:27 -05:00
2007-10-19 11:53:41 -07:00
2008-01-30 13:32:50 +01:00
2008-02-06 10:41:00 -08:00
2007-04-25 22:23:33 -07:00
2005-04-16 15:20:36 -07:00
2007-07-16 09:05:45 -07:00
2005-04-16 15:20:36 -07:00
2006-01-10 08:01:34 -08:00
2008-02-08 09:22:31 -08:00
2007-10-17 08:42:55 -07:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2005-04-16 15:20:36 -07:00
2005-09-08 14:57:25 -07:00
2007-05-11 08:29:34 -07:00
2005-05-01 08:59:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-31 15:39:42 -07:00
2005-04-16 15:20:36 -07:00