Skip to content

Commit

Permalink
x86, xen: fix build when !CONFIG_HOTPLUG_CPU
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Alex Nixon authored and Ingo Molnar committed Sep 8, 2008
1 parent cc643d4 commit 2737146
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/x86/xen/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ static void xen_smp_cpus_done(unsigned int max_cpus)
{
}

#ifdef CONFIG_HOTPLUG_CPU
int xen_cpu_disable(void)
{
unsigned int cpu = smp_processor_id();
Expand Down Expand Up @@ -368,6 +369,23 @@ void xen_play_dead(void)
cpu_bringup();
}

#else /* !CONFIG_HOTPLUG_CPU */
int xen_cpu_disable(void)
{
return -ENOSYS;
}

void xen_cpu_die(unsigned int cpu)
{
BUG();
}

void xen_play_dead(void)
{
BUG();
}

#endif
static void stop_self(void *v)
{
int cpu = smp_processor_id();
Expand Down

0 comments on commit 2737146

Please sign in to comment.