aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index b59c946433f4..0c485a538099 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -445,7 +445,7 @@ static struct global_cwq *get_work_gcwq(struct work_struct *work)
445 if (cpu == NR_CPUS) 445 if (cpu == NR_CPUS)
446 return NULL; 446 return NULL;
447 447
448 BUG_ON(cpu >= num_possible_cpus()); 448 BUG_ON(cpu >= nr_cpu_ids);
449 return get_gcwq(cpu); 449 return get_gcwq(cpu);
450} 450}
451 451