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, 1 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 27cdb1b5..95d54103 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -276,10 +276,8 @@ thread_preempt_schedule(void)
thread = runq->current;
assert(thread != NULL);
- if ((thread->preempt == 0)) {
- assert(!cpu_intr_enabled());
+ if ((thread->preempt == 0))
thread_schedule();
- }
}
void