diff options
Diffstat (limited to 'kern/task.c')
-rw-r--r-- | kern/task.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/task.c b/kern/task.c index 9a3d848..3b91de2 100644 --- a/kern/task.c +++ b/kern/task.c @@ -1141,14 +1141,14 @@ void task_collect_scan(void) prev_task = TASK_NULL; prev_pset = PROCESSOR_SET_NULL; - simple_lock(&all_psets_lock); + lock_all_psets(); queue_iterate(&all_psets, pset, processor_set_t, all_psets) { pset_lock(pset); queue_iterate(&pset->tasks, task, task_t, pset_tasks) { task_reference(task); pset_reference(pset); pset_unlock(pset); - simple_unlock(&all_psets_lock); + unlock_all_psets(); machine_task_collect (task); pmap_collect(task->map->pmap); @@ -1161,12 +1161,12 @@ void task_collect_scan(void) pset_deallocate(prev_pset); prev_pset = pset; - simple_lock(&all_psets_lock); + lock_all_psets(); pset_lock(pset); } pset_unlock(pset); } - simple_unlock(&all_psets_lock); + unlock_all_psets(); if (prev_task != TASK_NULL) task_deallocate(prev_task); |