[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH v1 14/21] ACPI: Move srat_disabled to common code
From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxx> Move srat_disabled() from xen/arch/x86/numa.c to xen/commom/srat.c. Signed-off-by: Vijaya Kumar <Vijaya.Kumar@xxxxxxxxxx> --- xen/arch/x86/numa.c | 7 ------- xen/common/srat.c | 7 +++++++ xen/include/asm-x86/acpi.h | 1 - xen/include/asm-x86/numa.h | 1 - xen/include/xen/srat.h | 2 ++ 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c index 58de324..ec251bd 100644 --- a/xen/arch/x86/numa.c +++ b/xen/arch/x86/numa.c @@ -32,13 +32,6 @@ nodeid_t apicid_to_node[MAX_LOCAL_APIC] = { nodemask_t __read_mostly node_online_map = { { [0] = 1UL } }; -s8 acpi_numa = 0; - -int srat_disabled(void) -{ - return numa_off || acpi_numa < 0; -} - void __init numa_init_array(void) { int rr, i; diff --git a/xen/common/srat.c b/xen/common/srat.c index cf50c78..a96406e 100644 --- a/xen/common/srat.c +++ b/xen/common/srat.c @@ -30,6 +30,13 @@ extern struct node nodes[MAX_NUMNODES] __initdata; struct pxm2node __read_mostly pxm2node[MAX_NUMNODES] = { [0 ... MAX_NUMNODES - 1] = {.node = NUMA_NO_NODE} }; +s8 acpi_numa = 0; + +int srat_disabled(void) +{ + return numa_off || acpi_numa < 0; +} + static inline bool_t node_found(unsigned idx, unsigned pxm) { return ((pxm2node[idx].pxm == pxm) && diff --git a/xen/include/asm-x86/acpi.h b/xen/include/asm-x86/acpi.h index f1a8e9d..934cd66 100644 --- a/xen/include/asm-x86/acpi.h +++ b/xen/include/asm-x86/acpi.h @@ -104,7 +104,6 @@ extern void acpi_reserve_bootmem(void); #define ARCH_HAS_POWER_INIT 1 -extern s8 acpi_numa; extern int acpi_scan_nodes(u64 start, u64 end); #ifdef CONFIG_ACPI_SLEEP diff --git a/xen/include/asm-x86/numa.h b/xen/include/asm-x86/numa.h index 79a445c..9c11db4 100644 --- a/xen/include/asm-x86/numa.h +++ b/xen/include/asm-x86/numa.h @@ -21,7 +21,6 @@ extern cpumask_t node_to_cpumask[]; extern void numa_init_array(void); -extern int srat_disabled(void); extern void srat_detect_node(int cpu); extern nodeid_t apicid_to_node[]; diff --git a/xen/include/xen/srat.h b/xen/include/xen/srat.h index 978f1e8..ab33d86 100644 --- a/xen/include/xen/srat.h +++ b/xen/include/xen/srat.h @@ -6,7 +6,9 @@ struct pxm2node { nodeid_t node; }; +extern s8 acpi_numa; extern struct pxm2node __read_mostly pxm2node[MAX_NUMNODES]; +extern int srat_disabled(void); nodeid_t pxm_to_node(unsigned pxm); nodeid_t setup_node(unsigned pxm); unsigned node_to_pxm(nodeid_t n); -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |