aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cpumask.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cpumask.c')
-rw-r--r--lib/cpumask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c
index 8d666ab84b5c..087a3e9a0202 100644
--- a/lib/cpumask.c
+++ b/lib/cpumask.c
@@ -5,6 +5,7 @@
5#include <linux/cpumask.h> 5#include <linux/cpumask.h>
6#include <linux/export.h> 6#include <linux/export.h>
7#include <linux/memblock.h> 7#include <linux/memblock.h>
8#include <linux/numa.h>
8 9
9/** 10/**
10 * cpumask_next - get the next cpu in a cpumask 11 * cpumask_next - get the next cpu in a cpumask
@@ -206,7 +207,7 @@ unsigned int cpumask_local_spread(unsigned int i, int node)
206 /* Wrap: we always want a cpu. */ 207 /* Wrap: we always want a cpu. */
207 i %= num_online_cpus(); 208 i %= num_online_cpus();
208 209
209 if (node == -1) { 210 if (node == NUMA_NO_NODE) {
210 for_each_cpu(cpu, cpu_online_mask) 211 for_each_cpu(cpu, cpu_online_mask)
211 if (i-- == 0) 212 if (i-- == 0)
212 return cpu; 213 return cpu;