| 38a94f41 | 17-Apr-2013 |
Daniel Lezcano <[email protected]> |
SH: cpuidle: check error code at init
Registering the driver, or the device, can fail, let's check the return code and return the error code to the PM layer.
Signed-off-by: Daniel Lezcano <daniel.l
SH: cpuidle: check error code at init
Registering the driver, or the device, can fail, let's check the return code and return the error code to the PM layer.
Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
show more ...
|
| 0a4f841e | 17-Apr-2013 |
Daniel Lezcano <[email protected]> |
SH: cpuidle: initialize the driver's states directly
Like all the other drivers, let's initialize the structure a compile time instead of init time.
The states #1 and #2 are not enabled by default.
SH: cpuidle: initialize the driver's states directly
Like all the other drivers, let's initialize the structure a compile time instead of init time.
The states #1 and #2 are not enabled by default. The init function will check the features of the board in order to enable the state.
Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
show more ...
|
| 194db92f | 17-Apr-2013 |
Daniel Lezcano <[email protected]> |
SH: cpuidle: remove CPUIDLE_DRIVER_STATE_START usage
The CPUIDLE_DRIVER_STATE_START constant is only set when the kernel compilation option CONFIG_ARCH_HAS_CPU_RELAX is set, but this is only relatat
SH: cpuidle: remove CPUIDLE_DRIVER_STATE_START usage
The CPUIDLE_DRIVER_STATE_START constant is only set when the kernel compilation option CONFIG_ARCH_HAS_CPU_RELAX is set, but this is only relatated to x86, so it is always zero.
Remove the reference to this constant in the code.
Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
show more ...
|
| 4be88734 | 18-Nov-2011 |
Paul Mundt <[email protected]> |
sh: cpuidle: Migrate off of hwblk API.
Now that the hwblk API is unused and going away, migrate cpuidle off of it. This is a pretty straightforward migration given that we weren't really making use
sh: cpuidle: Migrate off of hwblk API.
Now that the hwblk API is unused and going away, migrate cpuidle off of it. This is a pretty straightforward migration given that we weren't really making use of the allowed mode overloading in the first place, so simply default to regular sleep mode.
Signed-off-by: Paul Mundt <[email protected]>
show more ...
|
| 7fa4632d | 17-Nov-2011 |
Guennadi Liakhovetski <[email protected]> |
sh: sh7723: use runtime PM implementation, common with arm/mach-shmobile
Switch sh7723 to a runtime PM implementation, common with ARM-based sh-mobile platforms.
Signed-off-by: Guennadi Liakhovetsk
sh: sh7723: use runtime PM implementation, common with arm/mach-shmobile
Switch sh7723 to a runtime PM implementation, common with ARM-based sh-mobile platforms.
Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
show more ...
|
| 6a06d5bf | 17-Nov-2011 |
Guennadi Liakhovetski <[email protected]> |
sh: sh7722: use runtime PM implementation, common with arm/mach-shmobile
Switch sh7722 to a runtime PM implementation, common with ARM-based sh-mobile platforms.
Signed-off-by: Guennadi Liakhovetsk
sh: sh7722: use runtime PM implementation, common with arm/mach-shmobile
Switch sh7722 to a runtime PM implementation, common with ARM-based sh-mobile platforms.
Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
show more ...
|
| 46bcfad7 | 28-Oct-2011 |
Deepthi Dharwar <[email protected]> |
cpuidle: Single/Global registration of idle states
This patch makes the cpuidle_states structure global (single copy) instead of per-cpu. The statistics needed on per-cpu basis by the governor are k
cpuidle: Single/Global registration of idle states
This patch makes the cpuidle_states structure global (single copy) instead of per-cpu. The statistics needed on per-cpu basis by the governor are kept per-cpu. This simplifies the cpuidle subsystem as state registration is done by single cpu only. Having single copy of cpuidle_states saves memory. Rare case of asymmetric C-states can be handled within the cpuidle driver and architectures such as POWER do not have asymmetric C-states.
Having single/global registration of all the idle states, dynamic C-state transitions on x86 are handled by the boot cpu. Here, the boot cpu would disable all the devices, re-populate the states and later enable all the devices, irrespective of the cpu that would receive the notification first.
Reference: https://lkml.org/lkml/2011/4/25/83
Signed-off-by: Deepthi Dharwar <[email protected]> Signed-off-by: Trinabh Gupta <[email protected]> Tested-by: Jean Pihet <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Acked-by: Arjan van de Ven <[email protected]> Acked-by: Kevin Hilman <[email protected]> Signed-off-by: Len Brown <[email protected]>
show more ...
|