[RFC] arm: psci: implement cpuidle_ops

Daniel Lezcano daniel.lezcano at linaro.org
Thu Jul 2 01:16:08 PDT 2015


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




-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog




More information about the linux-arm-kernel mailing list