linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH v2 1/2] cpuidle: Add common init interface and idle functionality
Date: Thu, 5 Jan 2012 09:32:40 +0000	[thread overview]
Message-ID: <20120105093240.GM11810@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1323846126-7516-2-git-send-email-rob.lee@linaro.org>

On Wed, Dec 14, 2011 at 01:02:05AM -0600, Robert Lee wrote:
> +	asm("b 1f; .align 5; 1:");
> +	asm("mcr p15, 0, r0, c7, c10, 4");	/* drain write buffer */

Err, no.  The compiler is free to add whatever instructions it sees
fit between these two asm() statements.

If you want to ask the compiler to issue a set of assembly instructions
as a block, you have to use just one asm() statement.

  parent reply	other threads:[~2012-01-05  9:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14  7:02 [RFC PATCH v2 0/2] Add common cpuidle code for consolidation Robert Lee
2011-12-14  7:02 ` [RFC PATCH v2 1/2] cpuidle: Add common init interface and idle functionality Robert Lee
2011-12-22 18:09   ` Mark Brown
2012-01-04 23:21     ` Rob Lee
2011-12-22 22:57   ` Rob Herring
2012-01-04 23:15     ` Rob Lee
2012-01-04 23:35       ` Turquette, Mike
2012-01-04 23:51         ` Rob Herring
2012-01-05 20:11           ` Turquette, Mike
2012-01-05  9:32   ` Russell King - ARM Linux [this message]
2012-01-05 16:42     ` Rob Lee
2011-12-14  7:02 ` [RFC PATCH v2 2/2] ARM: imx: Add mx5 cpuidle implmentation Robert Lee
2011-12-22 17:50   ` Mark Brown
2012-01-04 23:35     ` Rob Lee
2012-01-05  3:21       ` Shawn Guo
2012-01-05  5:55       ` Mark Brown
2012-01-06 21:10         ` Rob Lee

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=20120105093240.GM11810@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --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).