提交 9af7503d 编写于 作者: T Thomas Gleixner

cris: Convert V32 interrupt handling

Convert the irq chip functions and install handle_simple_irq for each
interrupt to get rid of __do_IRQ()
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: Mikael Starvik <starvik@axis.com>
上级 f7a004ba
...@@ -291,54 +291,33 @@ void crisv32_unmask_irq(int irq) ...@@ -291,54 +291,33 @@ void crisv32_unmask_irq(int irq)
} }
static unsigned int startup_crisv32_irq(unsigned int irq) static void enable_crisv32_irq(struct irq_data *data)
{ {
crisv32_unmask_irq(irq); crisv32_unmask_irq(data->irq);
return 0;
}
static void shutdown_crisv32_irq(unsigned int irq)
{
crisv32_mask_irq(irq);
} }
static void enable_crisv32_irq(unsigned int irq) static void disable_crisv32_irq(struct irq_data *data)
{ {
crisv32_unmask_irq(irq); crisv32_mask_irq(data->irq);
} }
static void disable_crisv32_irq(unsigned int irq) static int set_affinity_crisv32_irq(struct irq_data *data,
{ const struct cpumask *dest, bool force)
crisv32_mask_irq(irq);
}
static void ack_crisv32_irq(unsigned int irq)
{
}
static void end_crisv32_irq(unsigned int irq)
{
}
int set_affinity_crisv32_irq(unsigned int irq, const struct cpumask *dest)
{ {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&irq_lock, flags); spin_lock_irqsave(&irq_lock, flags);
irq_allocations[irq - FIRST_IRQ].mask = *dest; irq_allocations[data->irq - FIRST_IRQ].mask = *dest;
spin_unlock_irqrestore(&irq_lock, flags); spin_unlock_irqrestore(&irq_lock, flags);
return 0; return 0;
} }
static struct irq_chip crisv32_irq_type = { static struct irq_chip crisv32_irq_type = {
.name = "CRISv32", .name = "CRISv32",
.startup = startup_crisv32_irq, .irq_shutdown = disable_crisv32_irq,
.shutdown = shutdown_crisv32_irq, .irq_enable = enable_crisv32_irq,
.enable = enable_crisv32_irq, .irq_disable = disable_crisv32_irq,
.disable = disable_crisv32_irq, .irq_set_affinity = set_affinity_crisv32_irq,
.ack = ack_crisv32_irq,
.end = end_crisv32_irq,
.set_affinity = set_affinity_crisv32_irq
}; };
void void
...@@ -472,7 +451,8 @@ init_IRQ(void) ...@@ -472,7 +451,8 @@ init_IRQ(void)
/* Point all IRQ's to bad handlers. */ /* Point all IRQ's to bad handlers. */
for (i = FIRST_IRQ, j = 0; j < NR_IRQS; i++, j++) { for (i = FIRST_IRQ, j = 0; j < NR_IRQS; i++, j++) {
irq_desc[j].chip = &crisv32_irq_type; set_irq_chip_and_handler(j, &crisv32_irq_type,
handle_simple_irq);
set_exception_vector(i, interrupt[j]); set_exception_vector(i, interrupt[j]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册