# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID 13d64dec47117e45d04e934f90a96eb042d7bf41
# Parent  e65f030855fb11b708332a1f0453d33659b499a8
[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 <[EMAIL PROTECTED]>
---
 xen/arch/powerpc/setup.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+)

diff -r e65f030855fb -r 13d64dec4711 xen/arch/powerpc/setup.c
--- a/xen/arch/powerpc/setup.c  Tue Aug 22 09:53:34 2006 -0400
+++ b/xen/arch/powerpc/setup.c  Tue Aug 22 11:16:01 2006 -0400
@@ -182,6 +182,21 @@ static void __init start_of_day(void)
 
     percpu_free_unused_areas();
 
+    {
+        /* FIXME: 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. */
+        int cpuid;
+
+        printk("WARNING!: Taking all secondary CPUs offline\n");
+
+        for_each_online_cpu(cpuid) {
+            if (cpuid == 0)
+                continue;
+            cpu_clear(cpuid, cpu_online_map);
+        }
+    }
+
     initialize_keytable();
     /* Register another key that will allow for the the Harware Probe
      * to be contacted, this works with RiscWatch probes and should

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to