ia64/xen-unstable

view linux-2.6-xen-sparse/include/xen/cpu_hotplug.h @ 14100:e47738923a05

[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Feb 23 16:56:45 2007 +0000 (2007-02-23)
parents e58e04589d11
children c3c03089c59e
line source
1 #ifndef __XEN_CPU_HOTPLUG_H__
2 #define __XEN_CPU_HOTPLUG_H__
4 #include <linux/kernel.h>
5 #include <linux/cpumask.h>
7 #if defined(CONFIG_HOTPLUG_CPU)
9 #if defined(CONFIG_X86)
10 void cpu_initialize_context(unsigned int cpu);
11 #else
12 #define cpu_initialize_context(cpu) ((void)0)
13 #endif
15 int cpu_up_check(unsigned int cpu);
16 void init_xenbus_allowed_cpumask(void);
17 int smp_suspend(void);
18 void smp_resume(void);
20 void cpu_bringup(void);
22 #else /* !defined(CONFIG_HOTPLUG_CPU) */
24 #define cpu_up_check(cpu) (0)
25 #define init_xenbus_allowed_cpumask() ((void)0)
27 static inline int smp_suspend(void)
28 {
29 if (num_online_cpus() > 1) {
30 printk(KERN_WARNING "Can't suspend SMP guests "
31 "without CONFIG_HOTPLUG_CPU\n");
32 return -EOPNOTSUPP;
33 }
34 return 0;
35 }
37 static inline void smp_resume(void)
38 {
39 }
41 #endif /* !defined(CONFIG_HOTPLUG_CPU) */
43 #endif /* __XEN_CPU_HOTPLUG_H__ */