UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 15 Feb 2017 08:53:09 +0000 (16:53 +0800)
commitbe76931fa7f0e8b456e6ed0e368a6814a301075f
tree02242963160455dafd861d11ce4e0b6dfc6f4d90
parent9f4dd9f771d12ccb8ced42f5bb97e282509f6a3f
UPSTREAM: PM / Domains: Remove redundant pm_request_idle() call in genpd

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>
(cherry picked from commit 9b002b8f0e386966dfc2dddf47eebed3b71ef876)

Change-Id: I3b6b3cb1b7675f7a9579b57d801efa5ea55c0e4e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/base/power/domain.c