Commit 46b7fe94 authored by Aisheng Dong's avatar Aisheng Dong Committed by Rafael J. Wysocki

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: default avatarDong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ef800684
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment