You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
UPSTREAM: PM: domains: Fix initialization of genpd's next_wakeup
In the genpd governor we walk the list of child-domains to take into account their next_wakeup. If the child-domain itself, doesn't have a governor assigned to it, we can end up using the next_wakeup value before it has been properly initialized. To prevent a possible incorrect behaviour in the governor, let's initialize next_wakeup to KTIME_MAX. Bug: 254441685 Fixes:c79aa080fb("PM: domains: use device's next wakeup to determine domain idle state") Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit622d9b5577) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: Iee5350e44c89dc566c2058f55103985928347a23
This commit is contained in:
committed by
Treehugger Robot
parent
4e1bf78ac0
commit
eb8869415a
@@ -1972,6 +1972,7 @@ int pm_genpd_init(struct generic_pm_domain *genpd,
|
||||
genpd->device_count = 0;
|
||||
genpd->max_off_time_ns = -1;
|
||||
genpd->max_off_time_changed = true;
|
||||
genpd->next_wakeup = KTIME_MAX;
|
||||
genpd->provider = NULL;
|
||||
genpd->has_provider = false;
|
||||
genpd->accounting_time = ktime_get();
|
||||
|
||||
Reference in New Issue
Block a user