diff options
author | Zwane Mwaikambo <zwane@arm.linux.org.uk> | 2005-09-06 18:16:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:15 -0400 |
commit | c078d3266e58a3edd698b9f143f78fc585679031 (patch) | |
tree | 01efc52786cb88db71cf0600ef5349740ffbdfc2 /arch/x86_64/kernel | |
parent | 54d5d42404e7705cf3804593189e963350d470e5 (diff) |
[PATCH] x86_64: print processor number in show_regs
Up to date I've been using the GS value to determine the processor number
in dumps from show_regs, however this can be cumbersome to do if you don't
have the vmlinux to verify with the address of cpu_pda, how about the
following? I considered using hard_smp_processor_id for robustness but we
already dereference current so we're already relying on MSR_GS_BASE being
sane.
Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Acked-by: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r-- | arch/x86_64/kernel/process.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c index 7577f9d7a75d..8661f82ac70b 100644 --- a/arch/x86_64/kernel/process.c +++ b/arch/x86_64/kernel/process.c | |||
@@ -310,6 +310,7 @@ void __show_regs(struct pt_regs * regs) | |||
310 | 310 | ||
311 | void show_regs(struct pt_regs *regs) | 311 | void show_regs(struct pt_regs *regs) |
312 | { | 312 | { |
313 | printk("CPU %d:", smp_processor_id()); | ||
313 | __show_regs(regs); | 314 | __show_regs(regs); |
314 | show_trace(®s->rsp); | 315 | show_trace(®s->rsp); |
315 | } | 316 | } |