From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] arm: psci: implement cpuidle_ops
Date: Thu, 02 Jul 2015 10:16:08 +0200 [thread overview]
Message-ID: <5594F348.4050709@linaro.org> (raw)
In-Reply-To: <5594F12F.6050401@linaro.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
--
<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
next prev parent reply other threads:[~2015-07-02 8:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 3:10 [RFC] arm: psci: implement cpuidle_ops Jisheng Zhang
2015-07-02 8:07 ` Daniel Lezcano
2015-07-02 8:16 ` Daniel Lezcano [this message]
2015-07-02 8:21 ` Jisheng Zhang
2015-07-02 8:18 ` Jisheng Zhang
2015-07-02 15:32 ` Mark Rutland
2015-07-07 11:03 ` Lorenzo Pieralisi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5594F348.4050709@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).