Commit fbdcf18d authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar

x86: fix show cpuinfo cpu number always zero

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: default avatarMike Travis <>
Cc: Andi Kleen <>
Cc: Christoph Lameter <>
Cc: Jack Steiner <>
Cc: Suresh B Siddha <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarIngo Molnar <>
Signed-off-by: default avatarThomas Gleixner <>
parent 3d054f0f
......@@ -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;
c->cpu_index = id;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment