diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-10-27 11:03:24 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-10-27 11:03:24 +1100 |
commit | eed37482d874a086e95d55a5a3ac0b41cd6084e2 (patch) | |
tree | aef22c67b3f3e6d1314ca963f53c04d0dbbbb2fb /lib | |
parent | 3bec6d6e84c6f94c5c50b597479dd6215d8b2290 (diff) |
cpumask:for_each_cpu
We want to wean people off handing around cpumask_t's, and have them
pass by pointer instead. This does for_each_cpu_mask().
We immediately convert core files who were doing
"for_each_cpu_mask(... *mask)" since this is clearer.
From: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cpumask.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index cb7d2506179e..c38a65cbc92e 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -28,7 +28,7 @@ int __any_online_cpu(const cpumask_t *mask) { int cpu; - for_each_cpu_mask(cpu, *mask) { + for_each_cpu(cpu, mask) { if (cpu_online(cpu)) break; } |