diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index e63ade49ea24..51cd7d066e0f 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2589,7 +2589,7 @@ static void __init check_numabalancing_enable(void) if (numabalancing_override) set_numabalancing_state(numabalancing_override == 1); - if (nr_node_ids > 1 && !numabalancing_override) { + if (num_online_nodes() > 1 && !numabalancing_override) { printk(KERN_INFO "%s automatic NUMA balancing. " "Configure with numa_balancing= or sysctl", numabalancing_default ? "Enabling" : "Disabling"); |