From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mach-shmobile: optimize get_irqnr_preamble/and_base macros
Date: Mon, 08 Feb 2010 10:53:13 +0000 [thread overview]
Message-ID: <20100208105313.5976.54002.sendpatchset@rxone.opensource.se> (raw)
From: Magnus Damm <damm@opensource.se>
Optimize the SH-Mobile interrupt assembly macros to avoid
reloading the INTFLGA register address in case of multiple
pending interrupts. Kindly pointed out by Russell King.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/mach-shmobile/include/mach/entry-macro.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 0002/arch/arm/mach-shmobile/include/mach/entry-macro.S
+++ work/arch/arm/mach-shmobile/include/mach/entry-macro.S 2010-02-08 14:47:31.000000000 +0900
@@ -21,13 +21,13 @@
.endm
.macro get_irqnr_preamble, base, tmp
+ ldr \base, =INTFLGA
.endm
.macro arch_ret_to_user, tmp1, tmp2
.endm
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
- ldr \base, =INTFLGA
ldr \irqnr, [\base]
cmp \irqnr, #0
beq 1000f
next prev reply other threads:[~2010-02-08 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 11:02 [PATCH] ARM: mach-shmobile: early console support using earlyprintk Magnus Damm
2010-02-08 10:53 ` Magnus Damm [this message]
2010-02-09 1:45 ` [PATCH] ARM: mach-shmobile: optimize get_irqnr_preamble/and_base macros Paul Mundt
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=20100208105313.5976.54002.sendpatchset@rxone.opensource.se \
--to=magnus.damm@gmail.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;
as well as URLs for NNTP newsgroup(s).