]> Git Repo - linux.git/commitdiff
PM / Domains: Improve warn for multiple states but no governor
authorAisheng Dong <[email protected]>
Wed, 6 Mar 2019 13:25:12 +0000 (13:25 +0000)
committerRafael J. Wysocki <[email protected]>
Mon, 11 Mar 2019 10:26:45 +0000 (11:26 +0100)
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 <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/base/power/domain.c

index 2c334c01fc43cf986d707fe470e3414ddeafc5f9..394f9daa39837eb7a334befcc20b3fd5acf7dbc8 100644 (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);
        }
 
This page took 0.05786 seconds and 4 git commands to generate.