summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/thread.c b/kern/thread.c
index d6f40da2..8af93518 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -48,8 +48,9 @@ static struct kmem_cache thread_stack_cache;
static void __init
thread_runq_init(struct thread_runq *runq, struct thread *idle)
{
- /* Consider preemption disabled during initialization */
+ /* Consider migration and preemption disabled during initialization */
idle->flags = 0;
+ idle->pinned = 1;
idle->preempt = 1;
runq->current = idle;
runq->idle = idle;