]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pmdomain: core: Add residency reflection for domain-idlestates to debugfs
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 14 Mar 2025 10:00:58 +0000 (11:00 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 23 Apr 2025 08:08:34 +0000 (10:08 +0200)
commit0a8a888167ddaaec7a292e5045782b8a240e6f3e
treed9ea6f8c083ed79b4854f287fdd1aab0474a0d75
parentd0252ba821a3076615b34c1107854f8ff31ecd2e
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
drivers/pmdomain/core.c
drivers/pmdomain/governor.c
include/linux/pm_domain.h