Commit:     79ccd1bedc0592602183dad5e3d51d0ab7a9add0
Parent:     e760e716d47b48caf98da348368fd41b4a9b9e7e
Author:     Hugh Dickins <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 9 05:25:13 2008 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Feb 14 22:11:00 2008 +1100

    [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 
    Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 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 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, 
 #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++) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to