]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Remove CPUIDLE_FLAG_IGNORE and dev->prepare()
authorDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
Fri, 28 Oct 2011 10:50:24 +0000 (16:20 +0530)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 02:13:43 +0000 (21:13 -0500)
commitac4000d16ad953d91da72c64f3b0145dc58f4bdd
tree5d3b8634606daa99fe5dc86ade108400ecf3a5fd
parent4cfb774b88b830ed62e68280940c665556535bd1
cpuidle: Remove CPUIDLE_FLAG_IGNORE and dev->prepare()

The cpuidle_device->prepare() mechanism causes updates to the
cpuidle_state[].flags, setting and clearing CPUIDLE_FLAG_IGNORE
to tell the governor not to chose a state on a per-cpu basis at
run-time. State demotion is now handled by the driver and it returns
the actual state entered. Hence, this mechanism is not required.
Also this removes per-cpu flags from cpuidle_state enabling
it to be made global.

Reference:
https://lkml.org/lkml/2011/3/25/52

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm>
Signed-off-by: Trinabh Gupta <g.trinabh@gmail.com>
Tested-by: Jean Pihet <j-pihet@ti.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/cpuidle/cpuidle.c
drivers/cpuidle/governors/menu.c
include/linux/cpuidle.h