Skip to content

Commit

Permalink
xen/smp: Use smp_store_boot_cpu_info() to store cpu info for BSP duri…
Browse files Browse the repository at this point in the history
…ng boot time.

Git commit 30106c1
("x86, hotplug: Support functions for CPU0 online/offline") alters what
the call to smp_store_cpu_info() does. For BSP we should use the
smp_store_boot_cpu_info() and for secondary CPU's the old
variant of smp_store_cpu_info() should be used. This fixes
the regression introduced by said commit.

Reported-and-Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
Konrad Rzeszutek Wilk committed Dec 18, 2012
1 parent 6a7ed40 commit 06d0b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)
}
xen_init_lock_cpu(0);

smp_store_cpu_info(0);
smp_store_boot_cpu_info();
cpu_data(0).x86_max_cores = 1;

for_each_possible_cpu(i) {
Expand Down

0 comments on commit 06d0b5d

Please sign in to comment.