diff options
Diffstat (limited to 'xen/arch/x86/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 5956dfcc05..38a0f5cd39 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -20,6 +20,7 @@ #include <xen/rcupdate.h> #include <xen/vga.h> #include <xen/dmi.h> +#include <xen/nodemask.h> #include <public/version.h> #ifdef CONFIG_COMPAT #include <compat/platform.h> @@ -263,7 +264,7 @@ void __devinit srat_detect_node(int cpu) u32 apicid = x86_cpu_to_apicid[cpu]; node = apicid_to_node[apicid]; - if ( node == NUMA_NO_NODE ) + if ( node == NUMA_NO_NODE || !node_online(node) ) node = 0; numa_set_node(cpu, node); |