aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlex Nixon <alex.nixon@citrix.com>2008-09-08 08:43:33 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-08 13:12:23 -0400
commit2737146b3aa2cf8b5d5ae87a18c49fe1c374528b (patch)
tree2f63078cbe973730184c7ddc135a135ab48754d8 /arch
parentcc643d4687533345fd8ebcba836f9ee25df7c458 (diff)
x86, xen: fix build when !CONFIG_HOTPLUG_CPU
Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Acked-by: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/xen/smp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index be5cbb2b7c60..bf51a466d62c 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
@@ -332,6 +332,7 @@ static void xen_smp_cpus_done(unsigned int max_cpus)
332{ 332{
333} 333}
334 334
335#ifdef CONFIG_HOTPLUG_CPU
335int xen_cpu_disable(void) 336int xen_cpu_disable(void)
336{ 337{
337 unsigned int cpu = smp_processor_id(); 338 unsigned int cpu = smp_processor_id();
@@ -368,6 +369,23 @@ void xen_play_dead(void)
368 cpu_bringup(); 369 cpu_bringup();
369} 370}
370 371
372#else /* !CONFIG_HOTPLUG_CPU */
373int xen_cpu_disable(void)
374{
375 return -ENOSYS;
376}
377
378void xen_cpu_die(unsigned int cpu)
379{
380 BUG();
381}
382
383void xen_play_dead(void)
384{
385 BUG();
386}
387
388#endif
371static void stop_self(void *v) 389static void stop_self(void *v)
372{ 390{
373 int cpu = smp_processor_id(); 391 int cpu = smp_processor_id();