diff options
author | Aisheng Dong <aisheng.dong@nxp.com> | 2019-03-06 13:25:12 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-03-11 11:26:45 +0100 |
commit | 46b7fe94995fd166786a301dbba919046e70e702 (patch) | |
tree | 8c417feec983f0f9a858be3239bb74a12a024e99 /drivers/base/power/domain.c | |
parent | ef8006846a3a97d9d8bf49e63dba948d0d2dbbf0 (diff) | |
download | lwn-46b7fe94995fd166786a301dbba919046e70e702.tar.gz lwn-46b7fe94995fd166786a301dbba919046e70e702.zip |
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/power/domain.c')
-rw-r--r-- | drivers/base/power/domain.c | 2 |
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); } |