lkml.org 
[lkml]   [2008]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] Xen: Fix build when !CONFIG_HOTPLUG_CPU
Date
Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ingo Molnar <mingo@elte.hu>
---
arch/x86/xen/smp.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index be5cbb2..bf51a46 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)
{
}

+#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();
--
1.5.4.3


\
 
 \ /
  Last update: 2008-09-08 14:45    [W:0.031 / U:4.784 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site