summaryrefslogtreecommitdiff
path: root/kern/sched_prim.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/sched_prim.c')
-rw-r--r--kern/sched_prim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/sched_prim.c b/kern/sched_prim.c
index a7b7a4e..ba2dc8a 100644
--- a/kern/sched_prim.c
+++ b/kern/sched_prim.c
@@ -637,6 +637,7 @@ boolean_t thread_invoke(
thread_lock(new_thread);
new_thread->state &= ~TH_UNINT;
thread_unlock(new_thread);
+ thread_wakeup(&new_thread->state);
if (continuation != (void (*)()) 0) {
(void) spl0();
@@ -658,6 +659,7 @@ boolean_t thread_invoke(
new_thread->state &= ~(TH_SWAPPED | TH_UNINT);
thread_unlock(new_thread);
+ thread_wakeup(&new_thread->state);
#if NCPUS > 1
new_thread->last_processor = current_processor();
@@ -787,6 +789,7 @@ boolean_t thread_invoke(
new_thread->state &= ~(TH_SWAPPED | TH_UNINT);
thread_unlock(new_thread);
+ thread_wakeup(&new_thread->state);
/*
* Thread is now interruptible.