From: adharmap@codeaurora•org (adharmap at codeaurora.org)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 2/5] gic: add callback for mask_ack
Date: Wed, 27 Jan 2010 11:32:26 -0800 [thread overview]
Message-ID: <1264620749-24527-3-git-send-email-adharmap@codeaurora.org> (raw)
In-Reply-To: <1264620749-24527-1-git-send-email-adharmap@codeaurora.org>
From: Abhijeet Dharmapurikar <adharmap@quicinc•com>
add gic_mask_ack for faster processing of interrupts.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@quicinc•com>
---
arch/arm/common/gic.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
index e763c4c..00172c4 100644
--- a/arch/arm/common/gic.c
+++ b/arch/arm/common/gic.c
@@ -108,6 +108,15 @@ static void gic_unmask_irq(unsigned int irq)
spin_unlock(&irq_controller_lock);
}
+static void gic_mask_ack_irq(unsigned int irq)
+{
+ u32 mask = 1 << (irq % 32);
+ spin_lock(&irq_controller_lock);
+ writel(mask, gic_dist_base(irq) + GIC_DIST_ENABLE_CLEAR + (gic_irq(irq) / 32) * 4);
+ writel(gic_irq(irq), gic_cpu_base(irq) + GIC_CPU_EOI);
+ spin_unlock(&irq_controller_lock);
+}
+
#ifdef CONFIG_SMP
static int gic_set_cpu(unsigned int irq, const struct cpumask *mask_val)
{
@@ -160,6 +169,7 @@ static struct irq_chip gic_chip = {
.name = "GIC",
.ack = gic_ack_irq,
.mask = gic_mask_irq,
+ .mask_ack = gic_mask_ack_irq,
.unmask = gic_unmask_irq,
#ifdef CONFIG_SMP
.set_affinity = gic_set_cpu,
--
1.5.6.3
next prev parent reply other threads:[~2010-01-27 19:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 19:32 [PATCH 0/5] Arm Gic Changes adharmap at codeaurora.org
2010-01-27 19:32 ` [PATCH 1/5] gic: prevent gic from crossing NR_IRQ adharmap at codeaurora.org
2010-01-27 22:43 ` Russell King - ARM Linux
2010-01-28 13:19 ` Catalin Marinas
2010-01-27 19:32 ` adharmap at codeaurora.org [this message]
2010-01-27 19:32 ` [PATCH 3/5] gic: Add set_type callback adharmap at codeaurora.org
2010-01-27 23:09 ` Russell King - ARM Linux
2010-01-27 23:18 ` Russell King - ARM Linux
2010-01-28 1:43 ` Abhijeet Dharmapurikar
2010-05-07 10:56 ` Linus Walleij
2010-01-27 19:32 ` [PATCH 4/5] gic: dont disable INT in ack callback adharmap at codeaurora.org
2010-01-27 19:32 ` [RFC PATCH 5/5] gic: initialize interrupts as per argument adharmap at codeaurora.org
2010-01-27 23:29 ` Russell King - ARM Linux
2010-01-28 0:39 ` [PATCH 0/5] Arm Gic Changes Ben Dooks
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=1264620749-24527-3-git-send-email-adharmap@codeaurora.org \
--to=adharmap@codeaurora$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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