linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Xen: Fix build when !CONFIG_HOTPLUG_CPU
@ 2008-09-08 12:43 Alex Nixon
  2008-09-08 12:43 ` [PATCH 2/2] Xen: Make CPU hotplug functions static Alex Nixon
  2008-09-08 17:12 ` [PATCH 1/2] Xen: Fix build when !CONFIG_HOTPLUG_CPU Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Nixon @ 2008-09-08 12:43 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Alex Nixon, Jeremy Fitzhardinge, Ingo Molnar

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-08 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 12:43 [PATCH 1/2] Xen: Fix build when !CONFIG_HOTPLUG_CPU Alex Nixon
2008-09-08 12:43 ` [PATCH 2/2] Xen: Make CPU hotplug functions static Alex Nixon
2008-09-08 17:12 ` [PATCH 1/2] Xen: Fix build when !CONFIG_HOTPLUG_CPU Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).