ia64/xen-unstable

changeset 11374:05b2b8b61cca

[POWERPC] Take all secondary processors offline after they are enumerated

Xen assumes that an online CPU is a schedualable CPU, but we just are
not there yet. Remove this fragment when scheduling processors
actually works.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Aug 22 11:16:01 2006 -0400 (2006-08-22)
parents 1ef82dd7f66b
children a8c7ece9cccb
files xen/arch/powerpc/setup.c
line diff
     1.1 --- a/xen/arch/powerpc/setup.c	Tue Aug 22 09:53:34 2006 -0400
     1.2 +++ b/xen/arch/powerpc/setup.c	Tue Aug 22 11:16:01 2006 -0400
     1.3 @@ -181,6 +181,21 @@ static void __init start_of_day(void)
     1.4  
     1.5      percpu_free_unused_areas();
     1.6  
     1.7 +    {
     1.8 +        /* FIXME: Xen assumes that an online CPU is a schedualable
     1.9 +         * CPU, but we just are not there yet. Remove this fragment when
    1.10 +         * scheduling processors actually works. */
    1.11 +        int cpuid;
    1.12 +
    1.13 +        printk("WARNING!: Taking all secondary CPUs offline\n");
    1.14 +
    1.15 +        for_each_online_cpu(cpuid) {
    1.16 +            if (cpuid == 0)
    1.17 +                continue;
    1.18 +            cpu_clear(cpuid, cpu_online_map);
    1.19 +        }
    1.20 +    }
    1.21 +
    1.22      initialize_keytable();
    1.23      /* Register another key that will allow for the the Harware Probe
    1.24       * to be contacted, this works with RiscWatch probes and should