]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / Domains: Extend generic power domain debugfs
authorThara Gopinath <thara.gopinath@linaro.org>
Fri, 14 Jul 2017 17:10:16 +0000 (13:10 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Jul 2017 21:02:03 +0000 (23:02 +0200)
commitb6a1d093f96b6357080aaaec617fae198eee2783
tree22ab5e313c9f472ea6ed1bef3ab7cae56c044077
parentafece3ab9a3640f9c1e064f56c8cdd4d783f6144
PM / Domains: Extend generic power domain debugfs

This patch extends the existing generic power domain debugfs.
Changes involve the following
- Introduce a unique debugfs entry for each generic power domain with the
  following attributes
- current_state - Displays current state of the domain.
- devices - Displays the devices associated with this domain.
- sub_domains - Displays the sub power domains.
- active_time - Displays the time the domain was in active state
in ms.
- total_idle_time - Displays the time the domain was in any of the idle
states in ms.
- idle_states - Displays the various idle states and the time
spent in each idle state in ms.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c