summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorAisheng Dong <aisheng.dong@nxp.com>2019-03-06 13:25:12 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-03-11 11:26:45 +0100
commit46b7fe94995fd166786a301dbba919046e70e702 (patch)
tree8c417feec983f0f9a858be3239bb74a12a024e99 /drivers/base
parentef8006846a3a97d9d8bf49e63dba948d0d2dbbf0 (diff)
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 2c334c01fc43..394f9daa3983 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -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);
}