[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN RFC PATCH 33/40] xen: export bad_srat and srat_disabled to extern
These two functions are architecture implementation. But common code out of arch will invoke them, so we export them to extern. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- xen/arch/arm/numa_device_tree.c | 4 ++-- xen/arch/x86/srat.c | 2 +- xen/include/asm-x86/numa.h | 1 - xen/include/xen/numa.h | 2 ++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/numa_device_tree.c b/xen/arch/arm/numa_device_tree.c index f74b7f6427..f7f2eeebc3 100644 --- a/xen/arch/arm/numa_device_tree.c +++ b/xen/arch/arm/numa_device_tree.c @@ -26,12 +26,12 @@ s8 device_tree_numa = 0; -static int srat_disabled(void) +int srat_disabled(void) { return numa_off || device_tree_numa < 0; } -static __init void bad_srat(void) +__init void bad_srat(void) { printk(KERN_ERR "DT: NUMA information is not used.\n"); device_tree_numa = -1; diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c index 3d4d90a622..c979939fdd 100644 --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -97,7 +97,7 @@ nodeid_t setup_node(unsigned pxm) return node; } -static __init void bad_srat(void) +__init void bad_srat(void) { int i; printk(KERN_ERR "SRAT: SRAT not used.\n"); diff --git a/xen/include/asm-x86/numa.h b/xen/include/asm-x86/numa.h index e0253c20b7..e63869135c 100644 --- a/xen/include/asm-x86/numa.h +++ b/xen/include/asm-x86/numa.h @@ -13,7 +13,6 @@ extern nodeid_t pxm_to_node(unsigned int pxm); #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT)) -extern int srat_disabled(void); extern nodeid_t setup_node(unsigned int pxm); extern void srat_detect_node(int cpu); diff --git a/xen/include/xen/numa.h b/xen/include/xen/numa.h index 094ab904c9..490381bd13 100644 --- a/xen/include/xen/numa.h +++ b/xen/include/xen/numa.h @@ -75,6 +75,8 @@ extern int compute_hash_shift(struct node *nodes, int numnodes, extern int conflicting_memblks(u64 start, u64 end); extern void cutoff_node(int i, u64 start, u64 end); extern int valid_numa_range(u64 start, u64 end, nodeid_t node); +extern int srat_disabled(void); +extern void bad_srat(void); extern void numa_init_array(void); extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |