提交 46b7fe94 编写于 作者: A Aisheng Dong 提交者: 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: NDong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册