From: Hugh Dickins Date: Fri, 8 Feb 2008 18:25:13 +0000 (+1100) Subject: [POWERPC] Fix DEBUG_PREEMPT warning when warning X-Git-Tag: v2.6.25-rc2~10^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79ccd1bedc0592602183dad5e3d51d0ab7a9add0;p=platform%2Fkernel%2Flinux-3.10.git [POWERPC] Fix DEBUG_PREEMPT warning when warning The powerpc show_regs prints CPU using smp_processor_id: change that to raw_smp_processor_id, so that when it's showing a WARN_ON backtrace without preemption disabled, DEBUG_PREEMPT doesn't mess up that warning with its own. Signed-off-by: Hugh Dickins Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b9d8837..4846bf5 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -462,7 +462,7 @@ void show_regs(struct pt_regs * regs) current, task_pid_nr(current), current->comm, task_thread_info(current)); #ifdef CONFIG_SMP - printk(" CPU: %d", smp_processor_id()); + printk(" CPU: %d", raw_smp_processor_id()); #endif /* CONFIG_SMP */ for (i = 0; i < 32; i++) {