summaryrefslogtreecommitdiff
path: root/kern/timer.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-06 20:42:42 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-06 20:42:42 +0200
commit4a9e56baddebd6b0f2c145d6cdb4425680c8a185 (patch)
tree63e7156634da1944d8eb10ddefb08d8968644319 /kern/timer.c
parent76161a62dd157ec9c7692098356a439b408ced60 (diff)
Use new thread_check_intr_context function consistently
Diffstat (limited to 'kern/timer.c')
-rw-r--r--kern/timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kern/timer.c b/kern/timer.c
index c73a34a..5a94860 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -527,8 +527,7 @@ timer_report_periodic_event(void)
struct hlist timers;
uint64_t ticks, now;
- assert(!cpu_intr_enabled());
- assert(!thread_preempt_enabled());
+ assert(thread_check_intr_context());
now = clock_get_time();
hlist_init(&timers);