summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-12-27 20:30:03 +0100
committerRichard Braun <rbraun@sceen.net>2012-12-27 20:30:03 +0100
commitce6a000151507e606affb25cac2dfc6101836484 (patch)
treead17058fb790c672afd778b4c93dde5520a41368 /kern/thread.c
parent9e714af807e7954b70e4bb6b173c21b471f86fc1 (diff)
kern/thread: migration control functions
There is currently no thread migration, but some modules already need migration control calls so that they're still valid once migration is implemented.
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;