aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/srat.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-12 11:43:21 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-12 11:43:21 +0000
commitc1100c28edad0c4494bba80f7b2da1f573d28d44 (patch)
tree7b9f3008aa467e64ed8ed5f7c8f3a33624a8a30c /xen/arch/x86/srat.c
parentf4cf0d5e8825b258de4964c615dbbfdae85d0b03 (diff)
downloadxen-c1100c28edad0c4494bba80f7b2da1f573d28d44.tar.gz
xen-c1100c28edad0c4494bba80f7b2da1f573d28d44.tar.bz2
xen-c1100c28edad0c4494bba80f7b2da1f573d28d44.zip
Support physical CPU hot-add in xen hypervisor
This patch add CPU hot-add in system. a) It mark all CPU as possible when booting, if CONFIG_HOTPLUG_CPU is set. BTW, this will increase per_cpu area. b) When a CPU is added through hypercall, the CPU will be marked as present and offline, and the numa information is setup if numa is supported. The CPU will be brought to online by dom0 online explicitly. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/arch/x86/srat.c')
-rw-r--r--xen/arch/x86/srat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c
index 9deeda077c..13a035ce45 100644
--- a/xen/arch/x86/srat.c
+++ b/xen/arch/x86/srat.c
@@ -41,7 +41,7 @@ int pxm_to_node(int pxm)
return (signed char)pxm2node[pxm];
}
-static __init int setup_node(int pxm)
+__devinit int setup_node(int pxm)
{
unsigned node = pxm2node[pxm];
if (node == 0xff) {
@@ -93,11 +93,6 @@ static __init void bad_srat(void)
apicid_to_node[i] = NUMA_NO_NODE;
}
-static __init inline int srat_disabled(void)
-{
- return numa_off || acpi_numa < 0;
-}
-
/*
* A lot of BIOS fill in 10 (= no distance) everywhere. This messes
* up the NUMA heuristics which wants the local node to have a smaller