summaryrefslogtreecommitdiff
path: root/kern/sched_prim.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-21 00:54:07 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-26 12:14:18 +0200
commite8e4cddec2daa1b3890477b9ccf817db0023c9e9 (patch)
tree6f856805a96012c77367d06009f679bef423d668 /kern/sched_prim.c
parent724bca75dfd24ab12ae3f25c2ffb10037c14e7d3 (diff)
turn all_psets_lock into a general lock
Diffstat (limited to 'kern/sched_prim.c')
-rw-r--r--kern/sched_prim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/sched_prim.c b/kern/sched_prim.c
index e354a21..aa6bb92 100644
--- a/kern/sched_prim.c
+++ b/kern/sched_prim.c
@@ -1969,12 +1969,12 @@ void do_thread_scan(void)
do {
#if MACH_HOST
- simple_lock(&all_psets_lock);
+ lock_all_psets();
queue_iterate(&all_psets, pset, processor_set_t, all_psets) {
if (restart_needed = do_runq_scan(&pset->runq))
break;
}
- simple_unlock(&all_psets_lock);
+ unlock_all_psets();
#else /* MACH_HOST */
restart_needed = do_runq_scan(&default_pset.runq);
#endif /* MACH_HOST */