[linux x86_64] Disable smp alternatives.
authorChristian Limpach <Christian.Limpach@xensource.com>
Fri, 12 Jan 2007 15:32:03 +0000 (15:32 +0000)
committerChristian Limpach <Christian.Limpach@xensource.com>
Fri, 12 Jan 2007 15:32:03 +0000 (15:32 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
linux-2.6-xen-sparse/drivers/xen/core/smpboot.c

index 9abe4251f91e41b6acb0e1755c4bbb6769941cdd..33ef1a553d66db787e33d6be8fad5bb02424ab0c 100644 (file)
@@ -392,8 +392,10 @@ void __cpu_die(unsigned int cpu)
 
        xen_smp_intr_exit(cpu);
 
+#if defined(__i386__)
        if (num_online_cpus() == 1)
                alternatives_smp_switch(0);
+#endif
 }
 
 #else /* !CONFIG_HOTPLUG_CPU */
@@ -418,8 +420,10 @@ int __devinit __cpu_up(unsigned int cpu)
        if (rc)
                return rc;
 
+#if defined(__i386__)
        if (num_online_cpus() == 1)
                alternatives_smp_switch(1);
+#endif
 
        /* This must be done before setting cpu_online_map */
        set_cpu_sibling_map(cpu);