diff options
| author | Deepthi Dharwar <[email protected]> | 2011-10-28 10:50:42 +0000 |
|---|---|---|
| committer | Len Brown <[email protected]> | 2011-11-07 02:13:58 +0000 |
| commit | 46bcfad7a819bd17ac4e831b04405152d59784ab (patch) | |
| tree | 20041e788154d103edff2699f88d4a30320e3ee2 /lib/mpi/mpi-cmp.c | |
| parent | cpuidle: Split cpuidle_state structure and move per-cpu statistics fields (diff) | |
| download | kernel-46bcfad7a819bd17ac4e831b04405152d59784ab.tar.gz kernel-46bcfad7a819bd17ac4e831b04405152d59784ab.zip | |
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]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
