From be76931fa7f0e8b456e6ed0e368a6814a301075f Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Mon, 30 May 2016 11:33:11 +0200 Subject: [PATCH] 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 Reviewed-by: Kevin Hilman Signed-off-by: Rafael J. Wysocki (cherry picked from commit 9b002b8f0e386966dfc2dddf47eebed3b71ef876) Change-Id: I3b6b3cb1b7675f7a9579b57d801efa5ea55c0e4e Signed-off-by: Elaine Zhang --- drivers/base/power/domain.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 258883a05cb8..1238d24dda6d 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -896,7 +896,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); } /** -- 2.34.1