]> git.baikalelectronics.ru Git - kernel.git/commit
sched/idle: Move idle conditions in cpuidle_idle main function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 3 Mar 2014 07:48:53 +0000 (08:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 10:52:48 +0000 (11:52 +0100)
commitcb3056b2afa094c5e0475fa3ee3dc64acf041e8d
treebd36a8512b0ef292a041176625ff190576a5790d
parentc9bc46f8dd33139ae90b2c230c9123f85db44f0a
sched/idle: Move idle conditions in cpuidle_idle main function

This patch moves the condition before entering idle into the cpuidle main
function located in idle.c. That simplify the idle mainloop functions and
increase the readibility of the conditions to enter truly idle.

This patch is code reorganization and does not change the behavior of the
function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: tglx@linutronix.de
Cc: rjw@rjwysocki.net
Cc: nicolas.pitre@linaro.org
Cc: preeti@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1393832934-11625-4-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/idle.c