From: Rafael J. Wysocki Date: Sat, 9 May 2015 23:18:03 +0000 (+0200) Subject: sched / idle: Call idle_set_state() from cpuidle_enter_state() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~154^2~8^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faad38492814112e3e7ce94d90123bbe301fff33;p=pandora-kernel.git sched / idle: Call idle_set_state() from cpuidle_enter_state() Introduce a wrapper function around idle_set_state() called sched_idle_set_state() that will pass this_rq() to it as the first argument and make cpuidle_enter_state() call the new function before and after entering the target state. At the same time, remove direct invocations of idle_set_state() from call_cpuidle(). This will allow the invocation of default_idle_call() to be moved from call_cpuidle() to cpuidle_enter_state() safely and call_cpuidle() to be simplified a bit as a result. Signed-off-by: Rafael J. Wysocki Reviewed-by: Preeti U Murthy Tested-by: Preeti U Murthy Tested-by: Sudeep Holla Acked-by: Kevin Hilman --- Reading git-diff-tree failed