From d9fdd87c7f4f9b8180f6c19e605fd009a63dd697 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 21 Jul 2015 00:54:07 +0200 Subject: turn all_psets_lock into a general lock --- kern/sched_prim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kern/sched_prim.c') diff --git a/kern/sched_prim.c b/kern/sched_prim.c index a06cc92..03292c8 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 */ -- cgit v1.2.3