aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_lock.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2010-06-11 18:46:34 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2010-06-11 18:46:34 +0000
commit3aa6d94e0c599b7b250f250454bd9414cf0fd46d (patch)
tree6823a317037813f606c0b52d6cfa18c924eb9a1d /sys/kern/subr_lock.c
parentcefac273a47beac63bf4f106642db7043b7390a1 (diff)
Update several places that iterate over CPUs to use CPU_FOREACH().
Notes
Notes: svn path=/head/; revision=209059
Diffstat (limited to 'sys/kern/subr_lock.c')
-rw-r--r--sys/kern/subr_lock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c
index 977f9e57f7e1..bc43c9c0b85c 100644
--- a/sys/kern/subr_lock.c
+++ b/sys/kern/subr_lock.c
@@ -256,9 +256,7 @@ lock_prof_idle(void)
td = curthread;
thread_lock(td);
- for (cpu = 0; cpu <= mp_maxid; cpu++) {
- if (CPU_ABSENT(cpu))
- continue;
+ CPU_FOREACH(cpu) {
sched_bind(td, cpu);
}
sched_unbind(td);