linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3 0/7] genpd multiple states v3
@ 2015-04-20 15:02 ahaslam
  2015-04-20 15:02 ` [RFC v3 1/7] PM / Domains: structure changes for multiple states ahaslam
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: ahaslam @ 2015-04-20 15:02 UTC (permalink / raw)
  To: ulf.hansson, khilman, rjw; +Cc: bcousson, linux-pm, Axel Haslam

From: Axel Haslam <ahaslam@baylibre.com>

Some architectures may have intermediate power
levels between on and off. each state in between
may have its own set of procedures to put the
power domain into that state.

This patch adds the ability to declare multiple
states for a given generic power domain, the idea
is that the deepest state will be entered which
does not violate any of the device or sub-domain
latency constraints.

Changes since v2:
* remove state argument and macros from save/restore
callbacks.

* added init_state for platforms to pass the
initial state when the genpd is initially off.

* convert current genpd users for the structure changes.

* compile tested for shmobile_defconfig, exynos_defconfig,
s3c6400_defconfig u8500_defconfig.

Changes since v1:
* split the changes so that the actual logic that
selects the target state is a separate patch.

* move the cached logic out of the state function and add
it back to default_power_down_ok.

* use static arrays instead of dynamic for state declaration
since its not expected to have lots of intermediate states.
That way we don't have to mess with allocations.

* rename default_power_down_ok_state to power_down_ok_for_state
Axel Haslam (7):
  PM / Domains: structure changes for multiple states
  PM / Domains: select deepest state
  ARM: s3c64xx: pm: Convert to multiple states
  ARM: exynos: pm: Convert to multiple states
  ARM: r8a7779: pm: Convert to multiple states
  ARM: rmobile: pm: Convert to multiple states
  ARM: ux500: pm: Convert to multiple states

 arch/arm/mach-exynos/pm_domains.c    |  6 ++-
 arch/arm/mach-s3c64xx/pm.c           |  8 +++-
 arch/arm/mach-shmobile/pm-r8a7779.c  |  6 ++-
 arch/arm/mach-shmobile/pm-rmobile.c  |  6 ++-
 arch/arm/mach-ux500/pm_domains.c     |  8 +++-
 drivers/base/power/domain.c          | 43 ++++++++++++++------
 drivers/base/power/domain_governor.c | 77 ++++++++++++++++++++++++------------
 include/linux/pm_domain.h            | 21 ++++++++--
 8 files changed, 125 insertions(+), 50 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-21 10:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 15:02 [RFC v3 0/7] genpd multiple states v3 ahaslam
2015-04-20 15:02 ` [RFC v3 1/7] PM / Domains: structure changes for multiple states ahaslam
2015-04-20 15:02 ` [RFC v3 2/7] PM / Domains: select deepest state ahaslam
2015-04-20 15:02 ` [PATCH] ARM: s3c64xx: pm: Convert to multiple states ahaslam
2015-04-20 15:02 ` [RFC v3 4/7] ARM: exynos: " ahaslam
2015-04-20 15:02 ` [RFC v3 5/7] ARM: r8a7779: " ahaslam
2015-04-20 15:02 ` [RFC v3 6/7] ARM: rmobile: " ahaslam
2015-04-20 15:02 ` [RFC v3 7/7] ARM: ux500: " ahaslam
2015-04-21 10:01 ` [RFC v3 0/7] genpd multiple states v3 Krzysztof Kozłowski
2015-04-21 10:20   ` Axel Haslam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).