summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-01-09 23:03:29 +0100
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-06-06 21:28:29 -0400
commit36647604add9607c73032b477982307fde4f39ea (patch)
tree08e9a7992d56e5740809faddec5c434e3f1d96b9
parenta548714c164153d62f6bede81bb6c02590101e5b (diff)
downloadlinux-rt-36647604add9607c73032b477982307fde4f39ea.tar.gz
sched: Init idle->on_rq in init_idle()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/sched/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5574372db8e1..86256279c620 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5412,6 +5412,7 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu)
rcu_read_unlock();
rq->curr = rq->idle = idle;
+ idle->on_rq = 1;
#if defined(CONFIG_SMP)
idle->on_cpu = 1;
#endif