diff options
Diffstat (limited to 'kern/mach_factor.c')
-rw-r--r-- | kern/mach_factor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/mach_factor.c b/kern/mach_factor.c index debce0b..6598707 100644 --- a/kern/mach_factor.c +++ b/kern/mach_factor.c @@ -63,7 +63,7 @@ void compute_mach_factor(void) long average_now; long load_now; - simple_lock(&all_psets_lock); + lock_all_psets(); pset = (processor_set_t) queue_first(&all_psets); while (!queue_end(&all_psets, (queue_entry_t)pset)) { @@ -146,5 +146,5 @@ void compute_mach_factor(void) pset = (processor_set_t) queue_next(&pset->all_psets); } - simple_unlock(&all_psets_lock); + unlock_all_psets(); } |