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>
This commit is contained in:
Aisheng Dong 2019-03-06 13:25:12 +00:00 committed by Rafael J. Wysocki
parent ef8006846a
commit 46b7fe9499
1 changed files with 1 additions and 1 deletions

View File

@ -1766,7 +1766,7 @@ int pm_genpd_init(struct generic_pm_domain *genpd,
ret = genpd_set_default_power_state(genpd);
if (ret)
return ret;
} else if (!gov) {
} else if (!gov && genpd->state_count > 1) {
pr_warn("%s : no governor for states\n", genpd->name);
}