ia64/linux-2.6.18-xen.hg

view include/xen/cpu_hotplug.h @ 452:c7ed6fe5dca0

kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:55:18 2008 +0000 (2008-02-28)
parents d2f9b7e36231
children
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_X86) && defined(CONFIG_SMP)
8 extern cpumask_t cpu_initialized_map;
9 #endif
11 #if defined(CONFIG_HOTPLUG_CPU)
13 int cpu_up_check(unsigned int cpu);
14 void init_xenbus_allowed_cpumask(void);
15 int smp_suspend(void);
16 void smp_resume(void);
18 void cpu_bringup(void);
20 #else /* !defined(CONFIG_HOTPLUG_CPU) */
22 #define cpu_up_check(cpu) (0)
23 #define init_xenbus_allowed_cpumask() ((void)0)
25 static inline int smp_suspend(void)
26 {
27 if (num_online_cpus() > 1) {
28 printk(KERN_WARNING "Can't suspend SMP guests "
29 "without CONFIG_HOTPLUG_CPU\n");
30 return -EOPNOTSUPP;
31 }
32 return 0;
33 }
35 static inline void smp_resume(void)
36 {
37 }
39 #endif /* !defined(CONFIG_HOTPLUG_CPU) */
41 #endif /* __XEN_CPU_HOTPLUG_H__ */