From mboxrd@z Thu Jan 1 00:00:00 1970 From: jszhang@marvell.com (Jisheng Zhang) Date: Thu, 2 Jul 2015 16:21:08 +0800 Subject: [RFC] arm: psci: implement cpuidle_ops In-Reply-To: <5594F348.4050709@linaro.org> References: <20150702111031.05f04184@xhacker> <5594F12F.6050401@linaro.org> <5594F348.4050709@linaro.org> Message-ID: <20150702162108.38c82ca2@xhacker> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 2 Jul 2015 10:16:08 +0200 Daniel Lezcano wrote: > On 07/02/2015 10:07 AM, Daniel Lezcano wrote: > > On 07/02/2015 05:10 AM, Jisheng Zhang wrote: > >> Hi all, > >> > >> we'd like to use cpuidle-arm.c for both arm and arm64 with psci as > >> backend. For > >> arm64, it works. But for arm, we miss cpuidle_ops. I want to add > >> cpuidle_ops for > >> arm psci, I dunno whether this is the correct direction, could you > >> please give > >> suggestions? > > > > You should look at the macro > > > > arch/arm/include/asm/cpuidle.h: > > > > #define CPUIDLE_METHOD_OF_DECLARE(name, _method, _ops) > > And more precisely, you can look at the code using it. > > https://git.kernel.org/cgit/linux/kernel/git/galak/linux-qcom.git/tree/drivers/soc/qcom/spm.c?h=qcom/all#n282 > Thanks for this URL. I'll cook similar patches for arm psci cpuidle_ops. Thanks