From 36647604add9607c73032b477982307fde4f39ea Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Wed, 9 Jan 2013 23:03:29 +0100 Subject: sched: Init idle->on_rq in init_idle() Signed-off-by: Thomas Gleixner --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1