summaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-12-01 14:39:51 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-12-01 14:39:51 +0100
commit4e28ec3d5fe0b994fe87b2406d75d9c351ef4940 (patch)
treeaf6fbb01ca736ff7e9f57bed685508bd74fc7cac /kernel/sched/core.c
parenta2c1bc645e87346150516b3abf1933ed29d0f48b (diff)
parent6af33995318fdfb4914fb1c5e67450fdb3d32084 (diff)
downloadlinux-4e28ec3d5fe0b994fe87b2406d75d9c351ef4940.tar.gz
linux-4e28ec3d5fe0b994fe87b2406d75d9c351ef4940.tar.bz2
linux-4e28ec3d5fe0b994fe87b2406d75d9c351ef4940.zip
Merge back earlier cpuidle material for v4.10.
Diffstat (limited to 'kernel/sched/core.c')
-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 154fd689fe02..c95fbcd9fe1f 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5279,6 +5279,7 @@ void init_idle(struct task_struct *idle, int cpu)
__sched_fork(0, idle);
idle->state = TASK_RUNNING;
idle->se.exec_start = sched_clock();
+ idle->flags |= PF_IDLE;
kasan_unpoison_task_stack(idle);