direct-io.hg

changeset 11506:3bd92176890c

[XEN][POWERPC] fix timebase race in SMP init

cpuid was being set twice in cpu_online_map, and the first one was causing a
race in the timebase synchronization code.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Fri Sep 08 12:28:49 2006 -0500 (2006-09-08)
parents 88fb77ac4f09
children 3b045a00e703
files xen/arch/powerpc/setup.c
line diff
     1.1 --- a/xen/arch/powerpc/setup.c	Fri Sep 08 10:23:56 2006 -0500
     1.2 +++ b/xen/arch/powerpc/setup.c	Fri Sep 08 12:28:49 2006 -0500
     1.3 @@ -244,7 +244,6 @@ static int kick_secondary_cpus(int maxcp
     1.4          if (cpuid >= maxcpus)
     1.5              break;
     1.6          init_parea(cpuid);
     1.7 -        cpu_set(cpuid, cpu_online_map);
     1.8          smp_generic_give_timebase();
     1.9  
    1.10          /* wait for it */