diff options
author | Lina Iyer <ilina@codeaurora.org> | 2020-10-15 23:47:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-10-16 18:53:22 +0300 |
commit | c6a113b52302adcfadda63af81dc05f7a669fbc8 (patch) | |
tree | c696c33f38bfb7145162c2cc211e77467eefdd76 /include/linux/pm_domain.h | |
parent | 505a70b783debaa84c7ebafa44a69a9401db4499 (diff) | |
download | linux-c6a113b52302adcfadda63af81dc05f7a669fbc8.tar.xz |
PM: domains: enable domain idle state accounting
To enable better debug of PM domains, keep a track of successful
and failing attempts to enter each domain idle state.
This statistics are exported in debugfs when reading the
idle_states node associated with each PM domain.
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r-- | include/linux/pm_domain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index db039da0aba2..1ad0ec481416 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -89,6 +89,8 @@ struct genpd_power_state { s64 power_off_latency_ns; s64 power_on_latency_ns; s64 residency_ns; + u64 usage; + u64 rejected; struct fwnode_handle *fwnode; ktime_t idle_time; void *data; |