From e53148ce42ff3519d53897e7921f3696ca19e28e Mon Sep 17 00:00:00 2001 From: Alex Nixon Date: Mon, 8 Sep 2008 13:43:33 +0100 Subject: [PATCH] --- yaml --- r: 113261 b: refs/heads/master c: 2737146b3aa2cf8b5d5ae87a18c49fe1c374528b h: refs/heads/master i: 113259: c43ce5d8a4d72d7f82e8068562941b130d981db9 v: v3 --- [refs] | 2 +- trunk/arch/x86/xen/smp.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c45f57e90a23..6e5deb7fca74 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cc643d4687533345fd8ebcba836f9ee25df7c458 +refs/heads/master: 2737146b3aa2cf8b5d5ae87a18c49fe1c374528b diff --git a/trunk/arch/x86/xen/smp.c b/trunk/arch/x86/xen/smp.c index be5cbb2b7c60..bf51a466d62c 100644 --- a/trunk/arch/x86/xen/smp.c +++ b/trunk/arch/x86/xen/smp.c @@ -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();