diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-23 14:04:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-23 14:04:33 +0100 |
commit | 68e9c64926264a0bb926372b16f0dbf9c0d35224 (patch) | |
tree | 896facbbb9c722eb712b68acaf3733056dcf429d /kern/machine.c | |
parent | b10edca40b871ca7e9ac0e09a5cf0ae8feac3311 (diff) | |
download | gnumach-68e9c64926264a0bb926372b16f0dbf9c0d35224.tar.gz gnumach-68e9c64926264a0bb926372b16f0dbf9c0d35224.tar.bz2 gnumach-68e9c64926264a0bb926372b16f0dbf9c0d35224.zip |
kern: move pset_idle_lock/unlock to header
so that kern/machine.c can use it
Diffstat (limited to 'kern/machine.c')
-rw-r--r-- | kern/machine.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kern/machine.c b/kern/machine.c index a350fad4..1322b549 100644 --- a/kern/machine.c +++ b/kern/machine.c @@ -176,8 +176,7 @@ processor_request_action( * get at processor state. */ pset = processor->processor_set; - assert_splsched(); - simple_lock_nocheck(&pset->idle_lock); + pset_idle_lock(); /* * If the processor is dispatching, let it finish - it will set its @@ -229,8 +228,7 @@ processor_request_action( panic("processor_request_action: bad state"); } simple_unlock(&action_lock); - assert_splsched(); - simple_unlock_nocheck(&pset->idle_lock); + pset_idle_unlock(); thread_wakeup((event_t)&action_queue); } |