projects/linux·commit fbdcf18d

x86: fix show cpuinfo cpu number always zero

fbdcf18d · Mike Travis <[email protected]> · 2007-12-19 23:20:19 +01:00

when called by setup_arch) after smp_store_cpu_info() had set it to the
correct value.

The error shows up in 'cat /proc/cpuinfo' will all cpus = 0.

Signed-off-by: Mike Travis <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Jack Steiner <[email protected]>
Cc: Suresh B Siddha <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Commit
fbdcf18df73758b2e187ab94678b30cd5f6ff9f9
Parents
3d054f0f

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/x86/kernel/smpboot_64.cmodified+1−1View file

arch/x86/kernel/smpboot_64.c

View file
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index 500670c..5948895 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -141,8 +141,8 @@ static void __cpuinit smp_store_cpu_info(int id)
struct cpuinfo_x86 *c = &cpu_data(id);
*c = boot_cpu_data;
- c->cpu_index = id;
identify_cpu(c);
+ c->cpu_index = id;
print_cpu_info(c);
}