Skip to content

Commit b2a92f3

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
PM: domains: Trust domain-idle-states from DT to be correct by genpd
If genpd has parsed the domain-idle-states from DT, it's reasonable to believe that the parsed data should be correct for the HW in question. Based upon this, it seem superfluous to let genpd measure the corresponding power-on/off latencies for these states. Therefore, let's improve the behaviour in genpd by avoiding the measurements for the domain-idle-states that have been parsed from DT. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 6961795 commit b2a92f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/base/power/domain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed)
509509
if (!genpd->power_on)
510510
goto out;
511511

512-
timed = timed && genpd->gd;
512+
timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
513513
if (!timed) {
514514
ret = genpd->power_on(genpd);
515515
if (ret)
@@ -559,7 +559,7 @@ static int _genpd_power_off(struct generic_pm_domain *genpd, bool timed)
559559
if (!genpd->power_off)
560560
goto out;
561561

562-
timed = timed && genpd->gd;
562+
timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
563563
if (!timed) {
564564
ret = genpd->power_off(genpd);
565565
if (ret)

0 commit comments

Comments
 (0)