mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] xen/x86: Define stubs for xen_smp_intr_init/xen_smp_intr_free
@ 2016-07-25 21:14 Boris Ostrovsky
  2016-07-26  5:36 ` Juergen Gross
  2016-07-28 15:34 ` [tip:smp/hotplug] " tip-bot for Boris Ostrovsky
  0 siblings, 2 replies; 3+ messages in thread
From: Boris Ostrovsky @ 2016-07-25 21:14 UTC (permalink / raw)
  To: david.vrabel, jgross, tglx; +Cc: linux-kernel, xen-devel, x86, boris.ostrovsky

xen_smp_intr_init() and xen_smp_intr_free() are now called from
enlighten.c and therefore not guaranteed to have CONFIG_SMP.

Instead of adding multiple ifdefs there provide stubs in smp.h

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---

The patch is against tip:smp/hotplug which is broken by 
https://lists.xenproject.org/archives/html/xen-devel/2016-03/msg02301.html


 arch/x86/xen/smp.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/x86/xen/smp.h b/arch/x86/xen/smp.h
index 45faaf3..a1918d8 100644
--- a/arch/x86/xen/smp.h
+++ b/arch/x86/xen/smp.h
@@ -1,5 +1,6 @@
 #ifndef _XEN_SMP_H
 
+#ifdef CONFIG_SMP
 extern void xen_send_IPI_mask(const struct cpumask *mask,
 			      int vector);
 extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
@@ -19,4 +20,12 @@ static inline void xen_pvh_early_cpu_init(int cpu, bool entry)
 }
 #endif
 
+#else /* CONFIG_SMP */
+static inline int xen_smp_intr_init(unsigned int cpu)
+{
+	return 0;
+}
+static inline void xen_smp_intr_free(unsigned int cpu) {}
+#endif /* CONFIG_SMP */
+
 #endif
-- 
2.7.4

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

end of thread, other threads:[~2016-07-28 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-25 21:14 [PATCH] xen/x86: Define stubs for xen_smp_intr_init/xen_smp_intr_free Boris Ostrovsky
2016-07-26  5:36 ` Juergen Gross
2016-07-28 15:34 ` [tip:smp/hotplug] " tip-bot for Boris Ostrovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome