]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpuidle: psci: Correct the domain-idlestate statistics in debugfs
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 14 Mar 2025 10:00:57 +0000 (11:00 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 23 Apr 2025 08:08:34 +0000 (10:08 +0200)
commitd0252ba821a3076615b34c1107854f8ff31ecd2e
tree6876a9eb3f3fbad608f383a1f787e5159cabd6ed
parent3290e9f98a2d3c43c0c9b89a73affa3aaebe62a3
cpuidle: psci: Correct the domain-idlestate statistics in debugfs

When trying to enter a domain-idlestate, we may occasionally fail to enter
the state, which is informed to us by psci_cpu_suspend_enter() returning an
error-code. In these cases, our corresponding genpd->power_off() callback
has already returned zero to indicate success, leading to getting
in-correct domain-idlestate statistics in debugfs for the genpd in
question.

Let's fix this by making use of the new pm_genpd_inc_rejected() helper, as
it allows us to correct the domain-idlestate statistics for this type of
scenario.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250314100103.1294715-4-ulf.hansson@linaro.org
drivers/cpuidle/cpuidle-psci-domain.c
drivers/cpuidle/cpuidle-psci.c
drivers/cpuidle/cpuidle-psci.h