Now, we can use the same function for ACPI and device tree based NUMA to scan memory nodes.
Signed-off-by: Wei Chen <wei.c...@arm.com> --- xen/common/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/numa.c b/xen/common/numa.c index 8ca13e27d1..d15c2fc311 100644 --- a/xen/common/numa.c +++ b/xen/common/numa.c @@ -381,7 +381,7 @@ void __init numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn) return; #endif -#ifdef CONFIG_ACPI_NUMA +#if defined(CONFIG_ACPI_NUMA) || defined(CONFIG_DEVICE_TREE_NUMA) if ( !numa_off && !numa_scan_nodes((u64)start_pfn << PAGE_SHIFT, (u64)end_pfn << PAGE_SHIFT) ) return; -- 2.25.1