mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-21 08:03:45 -04:00
pmdomain: core: Add residency reflection for domain-idlestates to debugfs
For regular cpuidle states we are reflecting over the selected/entered state to see if the sleep-duration meets the residency for the state. The output from the reflection is an "above" value to indicate the number of times the state was too deep and a "below" value for the number of times it was too shallow. Let's implement the similar thing for genpd's domain-idlestates along with genpd's governor and put the information in the genpd's debugfs. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20250314100103.1294715-5-ulf.hansson@linaro.org
This commit is contained in:
@@ -142,6 +142,8 @@ struct genpd_governor_data {
|
||||
bool max_off_time_changed;
|
||||
ktime_t next_wakeup;
|
||||
ktime_t next_hrtimer;
|
||||
ktime_t last_enter;
|
||||
bool reflect_residency;
|
||||
bool cached_power_down_ok;
|
||||
bool cached_power_down_state_idx;
|
||||
};
|
||||
@@ -153,6 +155,8 @@ struct genpd_power_state {
|
||||
s64 residency_ns;
|
||||
u64 usage;
|
||||
u64 rejected;
|
||||
u64 above;
|
||||
u64 below;
|
||||
struct fwnode_handle *fwnode;
|
||||
u64 idle_time;
|
||||
void *data;
|
||||
|
||||
Reference in New Issue
Block a user