diff options
author | Hugh Dickins <hugh@veritas.com> | 2008-02-08 13:25:13 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-02-14 06:11:00 -0500 |
commit | 79ccd1bedc0592602183dad5e3d51d0ab7a9add0 (patch) | |
tree | 0645ae9ab31cee36b666de772259080c4639ce95 /arch/powerpc | |
parent | e760e716d47b48caf98da348368fd41b4a9b9e7e (diff) |
[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 <hugh@veritas.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b9d88374f14f..4846bf543a8c 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -462,7 +462,7 @@ void show_regs(struct pt_regs * regs) | |||
462 | current, task_pid_nr(current), current->comm, task_thread_info(current)); | 462 | current, task_pid_nr(current), current->comm, task_thread_info(current)); |
463 | 463 | ||
464 | #ifdef CONFIG_SMP | 464 | #ifdef CONFIG_SMP |
465 | printk(" CPU: %d", smp_processor_id()); | 465 | printk(" CPU: %d", raw_smp_processor_id()); |
466 | #endif /* CONFIG_SMP */ | 466 | #endif /* CONFIG_SMP */ |
467 | 467 | ||
468 | for (i = 0; i < 32; i++) { | 468 | for (i = 0; i < 32; i++) { |