From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.lezcano@linaro.org (Daniel Lezcano) Date: Thu, 02 Jul 2015 10:16:08 +0200 Subject: [RFC] arm: psci: implement cpuidle_ops In-Reply-To: <5594F12F.6050401@linaro.org> References: <20150702111031.05f04184@xhacker> <5594F12F.6050401@linaro.org> Message-ID: <5594F348.4050709@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 -- Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog