idle/cpuidle: Split cpuidle_idle_call main function into smaller functions
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 3 Mar 2014 07:48:50 +0000 (08:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 10:52:45 +0000 (11:52 +0100)
commit907e30f1bb4a9656d351aa705c1e5931da908701
treead5f47cbc477986bb2bc5b0a111053f276d3f82b
parentd27c8438eeedb6e1367b592c101e3c87cca0b50f
idle/cpuidle: Split cpuidle_idle_call main function into smaller functions

In order to allow better integration between the cpuidle framework and the
scheduler, reducing the distance between these two sub-components will
facilitate this integration by moving part of the cpuidle code in the idle
task file and, because idle.c is in the sched directory, we have access to
the scheduler's private structures.

This patch splits the cpuidle_idle_call main entry function into 3 calls
to a newly added API:

 1. select the idle state
 2. enter the idle state
 3. reflect the idle state

The cpuidle_idle_call calls these three functions to implement the main
idle entry function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: rjw@rjwysocki.net
Cc: preeti@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1393832934-11625-1-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
This page took 0.032885 seconds and 5 git commands to generate.