diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-02-24 12:22:07 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-27 06:41:01 -0500 |
commit | 06d50c65b1043b166d102accc081093f79d8f7e5 (patch) | |
tree | 76650ebe1834d25b7c08bd95c7dcfc4db1a57ea1 /kernel/sched/idle.c | |
parent | f5f9739d7a0ccbdcf913a0b3604b134129d14f7e (diff) |
sched/idle: Remove stale old file
Commit cf37b6b48428d ("sched/idle: Move cpu/idle.c to sched/idle.c")
said to simply move a file; somehow it got mangled and created an old
version of the file and forgot to remove the old file.
Fix this fail; add the lost change and remove the now identical old
file.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: rjw@rjwysocki.net
Cc: nicolas.pitre@linaro.org
Cc: preeti@linux.vnet.ibm.com
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/20140224172207.GC9987@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/idle.c')
-rw-r--r-- | kernel/sched/idle.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c index 14ca43430aee..b7976a127178 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c | |||
@@ -108,14 +108,17 @@ static void cpu_idle_loop(void) | |||
108 | __current_set_polling(); | 108 | __current_set_polling(); |
109 | } | 109 | } |
110 | arch_cpu_idle_exit(); | 110 | arch_cpu_idle_exit(); |
111 | /* | ||
112 | * We need to test and propagate the TIF_NEED_RESCHED | ||
113 | * bit here because we might not have send the | ||
114 | * reschedule IPI to idle tasks. | ||
115 | */ | ||
116 | if (tif_need_resched()) | ||
117 | set_preempt_need_resched(); | ||
118 | } | 111 | } |
112 | |||
113 | /* | ||
114 | * Since we fell out of the loop above, we know | ||
115 | * TIF_NEED_RESCHED must be set, propagate it into | ||
116 | * PREEMPT_NEED_RESCHED. | ||
117 | * | ||
118 | * This is required because for polling idle loops we will | ||
119 | * not have had an IPI to fold the state for us. | ||
120 | */ | ||
121 | preempt_set_need_resched(); | ||
119 | tick_nohz_idle_exit(); | 122 | tick_nohz_idle_exit(); |
120 | schedule_preempt_disabled(); | 123 | schedule_preempt_disabled(); |
121 | } | 124 | } |