Rik van Riel
2005-Aug-23 17:44 UTC
[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@redhat.com> --- 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@lists.xensource.com http://lists.xensource.com/xen-devel