Skip to content

Commit 46b7fe9

Browse files
Aisheng Dongrafaeljw
authored andcommitted
PM / Domains: Improve warn for multiple states but no governor
It's possible a PM domain defines only one state and it does not need a governor to work. For such case, a warning actually is not necessary. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent ef80068 commit 46b7fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/power/domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ int pm_genpd_init(struct generic_pm_domain *genpd,
17661766
ret = genpd_set_default_power_state(genpd);
17671767
if (ret)
17681768
return ret;
1769-
} else if (!gov) {
1769+
} else if (!gov && genpd->state_count > 1) {
17701770
pr_warn("%s : no governor for states\n", genpd->name);
17711771
}
17721772

0 commit comments

Comments
 (0)