summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-19 13:32:54 +0100
committerRichard Braun <rbraun@sceen.net>2017-03-19 13:32:54 +0100
commit5fd6d6e12599ae5d17f3f7d4f4c3012bb56f8fab (patch)
tree3b2a36566edd4afc7c1dbe3a1707f886277b6dc1 /kern/thread.c
parent7d670538290125c1d100bbcf43700343f9c11332 (diff)
kern/thread: new thread_assert_interrupted function
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 550de7ee..d121a6aa 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -2487,8 +2487,7 @@ thread_schedule_intr(void)
{
struct thread_runq *runq;
- assert(!cpu_intr_enabled());
- assert(!thread_preempt_enabled());
+ thread_assert_interrupted();
runq = thread_runq_local();
syscnt_inc(&runq->sc_schedule_intrs);
@@ -2501,8 +2500,7 @@ thread_tick_intr(void)
struct thread_runq *runq;
struct thread *thread;
- assert(!cpu_intr_enabled());
- assert(!thread_preempt_enabled());
+ thread_assert_interrupted();
runq = thread_runq_local();
syscnt_inc(&runq->sc_tick_intrs);