From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] ARM: Enable dynamic clock gating?
Date: Thu, 31 Jul 2014 16:15:11 +0100 [thread overview]
Message-ID: <20140731151510.GZ26853@arm.com> (raw)
In-Reply-To: <81f4b45a-f8b3-4dec-9e94-9028ccd3e05f@BN1AFFO11FD009.protection.gbl>
On Thu, Jul 31, 2014 at 03:24:17PM +0100, S?ren Brinkmann wrote:
> Hi all,
>
> similar to the patch enabling the SCU standby mode
> (https://lkml.org/lkml/2014/7/30/122), I have a patch to enable the A9's
> 'dynamic clock gating'
> (http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0388f/CIHBGEHE.html)
> in platform code. This might also be a candidate to enable in common
> code.
> Do you think that would make sense?
> I tried to find the right place to add this and was looking at
> mm/proc-v7.S. It probably works to put it there, but does not really
> seem to be the right place.
>
> As reference, this is what I currently have as part of platform code:
> /* A9 clock gating */
> asm volatile ("mrc p15, 0, r12, c15, c0, 0\n"
> "orr r12, r12, #1\n"
> "mcr p15, 0, r12, c15, c0, 0\n"
> : /* no outputs */
> : /* no inputs */
> : "r12");
This should *really* be done by firmware.
Will
next prev parent reply other threads:[~2014-07-31 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-31 14:24 [RFC] ARM: Enable dynamic clock gating? Sören Brinkmann
2014-07-31 15:15 ` Will Deacon [this message]
2014-07-31 15:17 ` Sören Brinkmann
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=20140731151510.GZ26853@arm.com \
--to=will.deacon@arm.com \
--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