aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/smp.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/xen/smp.h')
-rw-r--r--xen/include/xen/smp.h55
1 files changed, 7 insertions, 48 deletions
diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h
index c02ecd4dc3..6ab913a430 100644
--- a/xen/include/xen/smp.h
+++ b/xen/include/xen/smp.h
@@ -1,23 +1,10 @@
-#ifndef __LINUX_SMP_H
-#define __LINUX_SMP_H
-
-/*
- * Generic SMP support
- * Alan Cox. <alan@redhat.com>
- */
+#ifndef __XEN_SMP_H__
+#define __XEN_SMP_H__
#include <xen/config.h>
-
-#ifdef CONFIG_SMP
-
#include <asm/smp.h>
/*
- * main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc.
- * (defined in asm header):
- */
-
-/*
* stops all CPUs but the current one:
*/
extern void smp_send_stop(void);
@@ -66,38 +53,6 @@ extern int on_selected_cpus(
*/
void smp_prepare_boot_cpu(void);
-#else
-
-/*
- * These macros fold the SMP functionality into a single CPU system
- */
-
-#define smp_send_event_check_mask(m) ((void)0)
-#define smp_send_event_check_cpu(p) ((void)0)
-#define raw_smp_processor_id() 0
-#define hard_smp_processor_id() 0
-#define smp_call_function(func,info,retry,wait) ({ do {} while (0); 0; })
-#define num_booting_cpus() 1
-#define smp_prepare_boot_cpu() do {} while (0)
-
-static inline int on_selected_cpus(
- cpumask_t selected,
- void (*func) (void *info),
- void *info,
- int retry,
- int wait)
-{
- if ( cpu_isset(0, selected) )
- {
- local_irq_disable();
- func(info);
- local_irq_enable();
- }
- return 0;
-}
-
-#endif
-
/*
* Call a function on all processors
*/
@@ -112,4 +67,8 @@ static inline int on_each_cpu(
#define smp_processor_id() raw_smp_processor_id()
-#endif
+/* No Xen contexts can be preempted by CPU hotplug. */
+#define lock_cpu_hotplug() ((void)0)
+#define unlock_cpu_hotplug() ((void)0)
+
+#endif /* __XEN_SMP_H__ */