|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] fix compile without CONFIG_HOTPLUG_CPU
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 <=
|
|
|
|
|