Messages in this thread Patch in this message | | | Date | Tue, 11 Feb 2014 10:17:58 +0100 | From | Sebastian Andrzej Siewior <> | Subject | [PATCH 1/6 v2] sched: Init idle->on_rq in init_idle() |
| |
The init task is state TASK_RUNNING and on_irq should be set to 1. It won't be set by scheduler because the idle task is never woken up, it is always the task we fall back to if there is no other task pending.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> [bigeasy: add patch description] Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- v1..v2: add patch description
kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b46131e..64f75f9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4473,6 +4473,7 @@ void 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 -- 1.9.rc1
| |