Commit 949bf166 authored by Paul Mundt's avatar Paul Mundt

sh: imask IRQs irq_data conversion.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent d6138832
...@@ -51,16 +51,20 @@ static inline void set_interrupt_registers(int ip) ...@@ -51,16 +51,20 @@ static inline void set_interrupt_registers(int ip)
: "t"); : "t");
} }
static void mask_imask_irq(unsigned int irq) static void mask_imask_irq(struct irq_data *data)
{ {
unsigned int irq = data->irq;
clear_bit(irq, imask_mask); clear_bit(irq, imask_mask);
if (interrupt_priority < IMASK_PRIORITY - irq) if (interrupt_priority < IMASK_PRIORITY - irq)
interrupt_priority = IMASK_PRIORITY - irq; interrupt_priority = IMASK_PRIORITY - irq;
set_interrupt_registers(interrupt_priority); set_interrupt_registers(interrupt_priority);
} }
static void unmask_imask_irq(unsigned int irq) static void unmask_imask_irq(struct irq_data *data)
{ {
unsigned int irq = data->irq;
set_bit(irq, imask_mask); set_bit(irq, imask_mask);
interrupt_priority = IMASK_PRIORITY - interrupt_priority = IMASK_PRIORITY -
find_first_zero_bit(imask_mask, IMASK_PRIORITY); find_first_zero_bit(imask_mask, IMASK_PRIORITY);
...@@ -69,9 +73,9 @@ static void unmask_imask_irq(unsigned int irq) ...@@ -69,9 +73,9 @@ static void unmask_imask_irq(unsigned int irq)
static struct irq_chip imask_irq_chip = { static struct irq_chip imask_irq_chip = {
.name = "SR.IMASK", .name = "SR.IMASK",
.mask = mask_imask_irq, .irq_mask = mask_imask_irq,
.unmask = unmask_imask_irq, .irq_unmask = unmask_imask_irq,
.mask_ack = mask_imask_irq, .irq_mask_ack = mask_imask_irq,
}; };
void make_imask_irq(unsigned int irq) void make_imask_irq(unsigned int irq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment