linux/arch/arm/mach-at91
Deepthi Dharwar e978aa7d7d cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state
Cpuidle governor only suggests the state to enter using the
governor->select() interface, but allows the low level driver to
override the recommended state. The actual entered state
may be different because of software or hardware demotion. Software
demotion is done by the back-end cpuidle driver and can be accounted
correctly. Current cpuidle code uses last_state field to capture the
actual state entered and based on that updates the statistics for the
state entered.

Ideally the driver enter routine should update the counters,
and it should return the state actually entered rather than the time
spent there. The generic cpuidle code should simply handle where
the counters live in the sysfs namespace, not updating the counters.

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

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Trinabh Gupta <g.trinabh@gmail.com>
Tested-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2011-11-06 21:13:30 -05:00
..
include/mach Merge branch 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-29 23:32:53 -07:00
at91cap9_devices.c
at91cap9.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91rm9200_devices.c
at91rm9200_time.c
at91rm9200.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91sam9_alt_reset.S
at91sam9g45_devices.c
at91sam9g45.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91sam9rl_devices.c
at91sam9rl.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91sam926x_time.c
at91sam9260_devices.c
at91sam9260.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91sam9261_devices.c
at91sam9261.c at91: at91sam9261.c: fix typo in t2_clk alias for atmel_tcb.0 2011-08-24 13:10:29 +02:00
at91sam9263_devices.c
at91sam9263.c at91: factorize sram init 2011-07-28 15:07:29 +00:00
at91x40_time.c
at91x40.c
board-1arm.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-afeb-9260v1.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-cam60.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-cap9adk.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-carmeva.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-cpu9krea.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-cpuat91.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-csb337.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-csb637.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-eb01.c
board-eb9200.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-ecbat91.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-eco920.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-flexibity.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-foxg20.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-gsia18s.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-kafa.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-kb9202.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-neocore926.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-pcontrol-g20.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-picotux200.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-qil-a9260.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-rm9200dk.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-rm9200ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9-l9260.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9g20ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9m10g45ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9rlek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9260ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9261ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-sam9263ek.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-snapper9260.c Merge branch 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-29 23:32:53 -07:00
board-stamp9g20.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-usb-a9260.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-usb-a9263.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
board-yl-9200.c at91: factorize at91 interrupts init to soc 2011-07-28 15:07:28 +00:00
clock.c
clock.h
cpuidle.c cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state 2011-11-06 21:13:30 -05:00
generic.h at91: factorize sram init 2011-07-28 15:07:29 +00:00
gpio.c
irq.c
Kconfig
leds.c
Makefile at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
Makefile.boot
pm_slowclock.S
pm.c
pm.h
sam9_smc.c
sam9_smc.h
setup.c at91: add arch specific ioremap support 2011-07-28 15:09:26 +00:00
soc.h at91: move register clocks to soc generic init 2011-07-28 15:07:29 +00:00