PM / Domains: Remove redundant pm_request_idle() call in genpd
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 May 2016 09:33:11 +0000 (11:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Jun 2016 13:14:34 +0000 (15:14 +0200)
The PM core increases the runtime PM usage count at the system PM prepare
phase. Later when the system resumes, it does a pm_runtime_put() in the
complete phase, which in addition to decrementing the usage count, does
the equivalent of a pm_request_idle().

Therefore the call to pm_request_idle() from within genpd's ->complete()
callback is redundant, so remove it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c

index 658eb1b229f8eb1b8a9f53f083d95385ffc777e9..60a9971fc4743e9e79c6861c544cae9987f54893 100644 (file)
@@ -938,7 +938,6 @@ static void pm_genpd_complete(struct device *dev)
        pm_generic_complete(dev);
        pm_runtime_set_active(dev);
        pm_runtime_enable(dev);
-       pm_request_idle(dev);
 }
 
 /**