[RFC] arm: psci: implement cpuidle_ops

Jisheng Zhang jszhang at marvell.com
Thu Jul 2 01:21:08 PDT 2015


On Thu, 2 Jul 2015 10:16:08 +0200
Daniel Lezcano <daniel.lezcano at linaro.org> 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




More information about the linux-arm-kernel mailing list