[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] fix compile without CONFIG_HOTPLUG_CPU


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Rik van Riel <riel@xxxxxxxxxx>
  • Date: Tue, 23 Aug 2005 13:44:16 -0400 (EDT)
  • Delivery-date: Tue, 23 Aug 2005 17:42:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

If CONFIG_HOTPLUG_CPU is not defined, the per-cpu variable cpu_state
is also not defined.  This trivial patch fixes the compile.

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- linux-2.6.12/arch/xen/i386/kernel/process.c.compile 2005-08-23 
10:42:33.000000000 -0400
+++ linux-2.6.12/arch/xen/i386/kernel/process.c 2005-08-23 10:42:51.000000000 
-0400
@@ -196,12 +196,12 @@
 
                        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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.