diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-06 20:42:42 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-06 20:42:42 +0200 |
commit | 4a9e56baddebd6b0f2c145d6cdb4425680c8a185 (patch) | |
tree | 63e7156634da1944d8eb10ddefb08d8968644319 /kern/work.c | |
parent | 76161a62dd157ec9c7692098356a439b408ced60 (diff) |
Use new thread_check_intr_context function consistently
Diffstat (limited to 'kern/work.c')
-rw-r--r-- | kern/work.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kern/work.c b/kern/work.c index c0eb0bb1..ea3eb1f4 100644 --- a/kern/work.c +++ b/kern/work.c @@ -537,8 +537,7 @@ work_report_periodic_event(void) { struct work_queue queue, highprio_queue; - assert(!cpu_intr_enabled()); - assert(!thread_preempt_enabled()); + assert(thread_check_intr_context()); work_pool_shift_queues(cpu_local_ptr(work_pool_cpu_main), &queue); work_pool_shift_queues(cpu_local_ptr(work_pool_cpu_highprio), |