From: Kyle McMartin <kyle@mcmartin.ca>
To: linux-kernel@vger.kernel.org
Cc: Mikael Starvik <starvik@axis.com>,
Jesper Nilsson <jesper.nilsson@axis.com>,
linux-cris-kernel@axis.com, kyle@mcmartin.ca
Subject: [PATCH 2/4] cris: convert arch-v10 away from __do_IRQ
Date: Fri, 15 Oct 2010 00:05:23 -0400 [thread overview]
Message-ID: <20101015040523.GC6333@bombadil.infradead.org> (raw)
In-Reply-To: <20101015040127.GA6333@bombadil.infradead.org>
Looks like handle_simple_irq will be fine here, since the do_IRQ
code is masking the interrupts for us.
Also remove a pile of unneeded handlers where the defaults filled
in by the genirq layer will do.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
---
arch/cris/arch-v10/kernel/irq.c | 26 +++++---------------------
1 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/arch/cris/arch-v10/kernel/irq.c b/arch/cris/arch-v10/kernel/irq.c
index 25d6252..07f17ce 100644
--- a/arch/cris/arch-v10/kernel/irq.c
+++ b/arch/cris/arch-v10/kernel/irq.c
@@ -104,16 +104,6 @@ static void (*interrupt[NR_IRQS])(void) = {
IRQ31_interrupt
};
-static void enable_crisv10_irq(unsigned int irq);
-
-static unsigned int startup_crisv10_irq(unsigned int irq)
-{
- enable_crisv10_irq(irq);
- return 0;
-}
-
-#define shutdown_crisv10_irq disable_crisv10_irq
-
static void enable_crisv10_irq(unsigned int irq)
{
crisv10_unmask_irq(irq);
@@ -124,22 +114,16 @@ static void disable_crisv10_irq(unsigned int irq)
crisv10_mask_irq(irq);
}
-static void ack_crisv10_irq(unsigned int irq)
-{
-}
-
-static void end_crisv10_irq(unsigned int irq)
+static void crisv10_noop(unsigned int irq)
{
}
static struct irq_chip crisv10_irq_type = {
.name = "CRISv10",
- .startup = startup_crisv10_irq,
- .shutdown = shutdown_crisv10_irq,
- .enable = enable_crisv10_irq,
+ .unmask = enable_crisv10_irq,
+ .mask = disable_crisv10_irq,
.disable = disable_crisv10_irq,
- .ack = ack_crisv10_irq,
- .end = end_crisv10_irq,
+ .ack = crisv10_noop,
.set_affinity = NULL
};
@@ -221,7 +205,7 @@ init_IRQ(void)
/* Initialize IRQ handler descriptors. */
for(i = 2; i < NR_IRQS; i++) {
- set_irq_chip_and_handler(i, &crisv10_irq_type, cris_do_IRQ);
+ set_irq_chip_and_handler(i, &crisv10_irq_type, handle_simple_irq);
set_int_vector(i, interrupt[i]);
}
--
1.7.3.1
next prev parent reply other threads:[~2010-10-15 4:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 4:01 [PATCH 0/4] cris: kill __do_IRQ Kyle McMartin
2010-10-15 4:05 ` [PATCH 1/4] cris: use set_irq_chip helpers Kyle McMartin
2010-10-15 4:05 ` Kyle McMartin [this message]
2010-10-15 4:05 ` [PATCH 3/4] cris: convert arch-v32 away from __do_IRQ Kyle McMartin
2010-10-15 4:05 ` [PATCH 4/4] cris: turn on GENERIC_HARDIRQS_NO__DO_IRQ Kyle McMartin
2010-10-15 6:13 ` [PATCH 0/4] cris: kill __do_IRQ Mikael Starvik
2010-11-10 15:31 ` Kyle McMartin
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=20101015040523.GC6333@bombadil.infradead.org \
--to=kyle@mcmartin.ca \
--cc=jesper.nilsson@axis.com \
--cc=linux-cris-kernel@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=starvik@axis.com \
/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
all inboxes | Powered by JetHome®