projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: core
[linux-2.6-block.git]
/
kernel
/
smp.c
diff --git
a/kernel/smp.c
b/kernel/smp.c
index 172b1826890941d15b5bf588e2ac3052e3e6ee12..5cfa0e5e3e88d0a4527205de6e438b0e17dbf8ec 100644
(file)
--- a/
kernel/smp.c
+++ b/
kernel/smp.c
@@
-223,7
+223,7
@@
int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
local_irq_save(flags);
func(info);
local_irq_restore(flags);
- } else if ((unsigned)cpu <
NR_CPUS
&& cpu_online(cpu)) {
+ } else if ((unsigned)cpu <
nr_cpu_ids
&& cpu_online(cpu)) {
struct call_single_data *data = NULL;
if (!wait) {