summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c
index c04635b5..b5a3ae45 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -2630,7 +2630,7 @@ thread_schedule_intr(void)
{
struct thread_runq *runq;
- thread_assert_interrupted();
+ assert(thread_check_intr_context());
runq = thread_runq_local();
syscnt_inc(&runq->sc_schedule_intrs);
@@ -2643,7 +2643,7 @@ thread_report_periodic_event(void)
struct thread_runq *runq;
struct thread *thread;
- thread_assert_interrupted();
+ assert(thread_check_intr_context());
runq = thread_runq_local();
thread = thread_self();