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)
commit8ca3c6424f4988fc19ed1067b121fbaf2e884d77
treebd36a8512b0ef292a041176625ff190576a5790d
parentc8cc7d4de7a4f2fb1f8774ec2de5b49c46c42e64
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