提交 2737146b 编写于 作者: A Alex Nixon 提交者: Ingo Molnar

x86, xen: fix build when !CONFIG_HOTPLUG_CPU

Signed-off-by: NAlex Nixon <alex.nixon@citrix.com>
Acked-by: NJeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 cc643d46
......@@ -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();
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册