aboutsummaryrefslogtreecommitdiff
path: root/kern/eventcount.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 13:30:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 23:29:30 +0200
commitdeb2b637605bf0beedb55ed5483f55af09ab41e9 (patch)
treeebe34978e45ed1c4928eb13a8132c926af304ea8 /kern/eventcount.c
parent5879781c77ac5ed903b3712aef546848681b449d (diff)
downloadgnumach-deb2b637605bf0beedb55ed5483f55af09ab41e9.tar.gz
gnumach-deb2b637605bf0beedb55ed5483f55af09ab41e9.tar.bz2
gnumach-deb2b637605bf0beedb55ed5483f55af09ab41e9.zip
sched: Add runq_lock helpers which check they are called at spl7
Diffstat (limited to 'kern/eventcount.c')
-rw-r--r--kern/eventcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/eventcount.c b/kern/eventcount.c
index 3a96b4fb..4dda5186 100644
--- a/kern/eventcount.c
+++ b/kern/eventcount.c
@@ -339,7 +339,7 @@ simpler_thread_setrun(
ast_on(cpu_number(), AST_BLOCK);
whichq = (th)->sched_pri;
- simple_lock(&(rq)->lock); /* lock the run queue */
+ runq_lock(rq); /* lock the run queue */
enqueue_head(&(rq)->runq[whichq], &((th)->links));
if (whichq < (rq)->low || (rq)->count == 0)
@@ -350,7 +350,7 @@ simpler_thread_setrun(
#else
(th)->runq = (rq);
#endif
- simple_unlock(&(rq)->lock);
+ runq_unlock(rq);
/*
* Turn off first_quantum to allow context switch.