Fix non-hotplug i386 build. Spotted by Rik van Riel.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 17:54:38 +0000 (17:54 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 17:54:38 +0000 (17:54 +0000)
linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c

index 14ae68f3c9b28af3427b68a2beadeacd14e92d59..cb6526d4ac893f78250f72e2cecbb49cdd53b4bd 100644 (file)
@@ -149,12 +149,12 @@ void cpu_idle (void)
 
                        if (cpu_is_offline(cpu)) {
                                local_irq_disable();
+#if defined(CONFIG_XEN) && defined(CONFIG_HOTPLUG_CPU)
                                /* Ack it.  From this point on until
                                   we get woken up, we're not allowed
                                   to take any locks.  In particular,
                                   don't printk. */
                                __get_cpu_var(cpu_state) = CPU_DEAD;
-#if defined(CONFIG_XEN) && defined(CONFIG_HOTPLUG_CPU)
                                /* Tell hypervisor to take vcpu down. */
                                HYPERVISOR_vcpu_down(cpu);
 #endif