diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-15 23:40:54 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-15 23:40:56 +0100 |
commit | cb5e3ca248435f19fce0254987ba894a25611974 (patch) | |
tree | 0a381f24b9d537b10e2079e38a3adeb5da59fcc0 /kern/sched.h | |
parent | b0c0a49918b6fd5f75cbd7565429a1398ddc80a9 (diff) | |
download | gnumach-cb5e3ca248435f19fce0254987ba894a25611974.tar.gz gnumach-cb5e3ca248435f19fce0254987ba894a25611974.tar.bz2 gnumach-cb5e3ca248435f19fce0254987ba894a25611974.zip |
Document spl levels of locks taken during interrupts
Diffstat (limited to 'kern/sched.h')
-rw-r--r-- | kern/sched.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/sched.h b/kern/sched.h index 588e0aa6..07d27ff5 100644 --- a/kern/sched.h +++ b/kern/sched.h @@ -64,7 +64,9 @@ struct run_queue { queue_head_t runq[NRQS]; /* one for each priority */ - decl_simple_lock_data(, lock) /* one lock for all queues */ + decl_simple_lock_data(, lock) /* one lock for all queues, + shall be taken at splsched + only */ int low; /* low queue value */ int count; /* count of threads runable */ }; |