linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: johlstei@codeaurora.org (Jeff Ohlstein)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] arm: macros for wfe, sev instructions
Date: Fri, 23 Jul 2010 11:58:03 -0700	[thread overview]
Message-ID: <1279911483-7039-4-git-send-email-johlstei@codeaurora.org> (raw)
In-Reply-To: <1279911483-7039-1-git-send-email-johlstei@codeaurora.org>

From: Steve Muckle <smuckle@codeaurora.org>

The wait for event and send event instructions may be called from C code
such as boot or power management routines.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
---
 arch/arm/include/asm/processor.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h
index 7bed3da..4262664 100644
--- a/arch/arm/include/asm/processor.h
+++ b/arch/arm/include/asm/processor.h
@@ -97,6 +97,11 @@ unsigned long get_wchan(struct task_struct *p);
 #define cpu_relax()			barrier()
 #endif
 
+#if defined(CONFIG_CPU_32v6K) || __LINUX_ARM_ARCH__ >= 7
+#define sev() __asm__("sev")
+#define wfe() __asm__("wfe")
+#endif
+
 /*
  * Create a new kernel thread
  */
-- 
1.7.1.1

      parent reply	other threads:[~2010-07-23 18:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 18:58 [PATCH 0/3] ARM changes for ScorpionMP support Jeff Ohlstein
2010-07-23 18:58 ` [PATCH 1/3] arm: Kconfig option for ARCH_MSM_SCORPIONMP Jeff Ohlstein
2010-07-23 18:58 ` [PATCH 2/3] arm: mm: do not set missing flags on ScorpionMP Jeff Ohlstein
2010-07-24  8:23   ` Russell King - ARM Linux
2010-07-28 21:58     ` Daniel Walker
2010-07-28 22:36       ` Russell King - ARM Linux
2010-07-28 22:51         ` Daniel Walker
2010-07-29  7:18           ` Russell King - ARM Linux
2010-07-29 22:42             ` Daniel Walker
2010-07-30  7:19               ` Russell King - ARM Linux
2010-07-30 17:09                 ` Daniel Walker
2010-07-30 20:20                   ` Russell King - ARM Linux
2010-07-30 20:46                     ` Daniel Walker
2010-07-23 18:58 ` Jeff Ohlstein [this message]

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=1279911483-7039-4-git-send-email-johlstei@codeaurora.org \
    --to=johlstei@codeaurora.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).