aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mach-generic
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/asm-x86/mach-generic
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/asm-x86/mach-generic')
-rw-r--r--xen/include/asm-x86/mach-generic/mach_apic.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/xen/include/asm-x86/mach-generic/mach_apic.h b/xen/include/asm-x86/mach-generic/mach_apic.h
index a453a08a94..f85bb15f41 100644
--- a/xen/include/asm-x86/mach-generic/mach_apic.h
+++ b/xen/include/asm-x86/mach-generic/mach_apic.h
@@ -25,13 +25,6 @@ static inline void enable_apic_mode(void)
#define apicid_to_node(apicid) ((int)apicid_to_node[(u32)apicid])
extern u32 bios_cpu_apicid[];
-static inline int cpu_present_to_apicid(int mps_cpu)
-{
- if (mps_cpu < NR_CPUS)
- return (int)bios_cpu_apicid[mps_cpu];
- else
- return BAD_APICID;
-}
static inline int mpc_apic_id(struct mpc_config_processor *m,
struct mpc_config_translation *translation_record)