aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/smp.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-10 13:04:45 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-10 13:04:45 +0000
commit24be6cfe21e78262f7100e6d100aeef0cddd5ab7 (patch)
tree0d1a729ee8fc9c5bfe3a43a7872fb819bcd0903e /xen/include/xen/smp.h
parentfee63693e0ea23d24f239a05c0607021de02dd7f (diff)
downloadxen-24be6cfe21e78262f7100e6d100aeef0cddd5ab7.tar.gz
xen-24be6cfe21e78262f7100e6d100aeef0cddd5ab7.tar.bz2
xen-24be6cfe21e78262f7100e6d100aeef0cddd5ab7.zip
Mark CPU present when it is detected
Currently a CPU is marked as present only after it has been kicked off successfully, i.e. before the CPU is brought up, it is not present. This patch try to mark CPU as present when it is detected (either through MPS table or ACPI). If it can't be brought up successfully, it will be marked as non-present again. This change is mainly for CPU hot-plug. As discussed, we'd take two step for physical CPU hot-add. A CPU is firstly marked as present, and later will bring as online. Also, In smp_boot_cpus(), xen need only scan all present CPU, and no need to loop from 0... NR_CPUS. With this change, the bios_cpu_apicid is not needed anymore. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/xen/smp.h')
-rw-r--r--xen/include/xen/smp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h
index 3d889ba662..6d77c5d76b 100644
--- a/xen/include/xen/smp.h
+++ b/xen/include/xen/smp.h
@@ -68,4 +68,6 @@ static inline int on_each_cpu(
#define lock_cpu_hotplug() ((void)0)
#define unlock_cpu_hotplug() ((void)0)
+int alloc_cpu_id(void);
+
#endif /* __XEN_SMP_H__ */