From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH RFC 13/27] ARM: cpuidle: Add runtime PM support for CPU idle Date: Thu, 19 Nov 2015 14:10:50 -0800 Message-ID: <7hlh9ttzbp.fsf@deeprootsystems.com> References: <1447799871-56374-1-git-send-email-lina.iyer@linaro.org> <1447799871-56374-14-git-send-email-lina.iyer@linaro.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1447799871-56374-14-git-send-email-lina.iyer@linaro.org> (Lina Iyer's message of "Tue, 17 Nov 2015 15:37:37 -0700") Sender: linux-arm-msm-owner@vger.kernel.org To: Lina Iyer Cc: ulf.hansson@linaro.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, geert@linux-m68k.org, k.kozlowski@samsung.com, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, lorenzo.pieralisi@arm.com, ahaslam@baylibre.com, mtitinger@baylibre.com, Daniel Lezcano List-Id: linux-pm@vger.kernel.org Lina Iyer writes: > Notify runtime PM when the CPU is going to be powered off in the idle > state. This allows for runtime PM suspend/resume of the CPU as well as > its PM domain. > > Cc: Daniel Lezcano > Cc: Lorenzo Pieralisi > Signed-off-by: Lina Iyer > --- > drivers/cpuidle/cpuidle-arm.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/cpuidle/cpuidle-arm.c b/drivers/cpuidle/cpuidle-arm.c > index 545069d..8e72a23 100644 > --- a/drivers/cpuidle/cpuidle-arm.c > +++ b/drivers/cpuidle/cpuidle-arm.c > @@ -11,13 +11,16 @@ > > #define pr_fmt(fmt) "CPUidle arm: " fmt > > +#include > #include > #include > #include > #include > #include > #include > +#include > #include > +#include > > #include > > @@ -45,6 +48,10 @@ static int arm_enter_idle_state(struct cpuidle_device *dev, > > ret = cpu_pm_enter(); > if (!ret) { > + struct device *cpu_dev = get_cpu_device(dev->cpu); > + > + RCU_NONIDLE(pm_runtime_put_sync_suspend(cpu_dev)); > + A comment in the changelog about the use of _put_sync_suspend() instead of a normal _put_sync() would be helpful for this patch. Kevin