WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix compile without CONFIG_HOTPLUG_CPU
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix compile without CONFIG_HOTPLUG_CPU, Rik van Riel <=