diff options
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index dbdb59a42093..864c3abdf8f4 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -335,6 +335,11 @@ static void compat_irq_unmask(struct irq_data *data) | |||
335 | data->chip->unmask(data->irq); | 335 | data->chip->unmask(data->irq); |
336 | } | 336 | } |
337 | 337 | ||
338 | static void compat_irq_ack(struct irq_data *data) | ||
339 | { | ||
340 | data->chip->ack(data->irq); | ||
341 | } | ||
342 | |||
338 | static void compat_bus_lock(struct irq_data *data) | 343 | static void compat_bus_lock(struct irq_data *data) |
339 | { | 344 | { |
340 | data->chip->bus_lock(data->irq); | 345 | data->chip->bus_lock(data->irq); |
@@ -372,12 +377,12 @@ void irq_chip_set_defaults(struct irq_chip *chip) | |||
372 | chip->irq_bus_lock = compat_bus_lock; | 377 | chip->irq_bus_lock = compat_bus_lock; |
373 | if (chip->bus_sync_unlock) | 378 | if (chip->bus_sync_unlock) |
374 | chip->irq_bus_sync_unlock = compat_bus_sync_unlock; | 379 | chip->irq_bus_sync_unlock = compat_bus_sync_unlock; |
375 | |||
376 | if (chip->mask) | 380 | if (chip->mask) |
377 | chip->irq_mask = compat_irq_mask; | 381 | chip->irq_mask = compat_irq_mask; |
378 | |||
379 | if (chip->unmask) | 382 | if (chip->unmask) |
380 | chip->irq_unmask = compat_irq_unmask; | 383 | chip->irq_unmask = compat_irq_unmask; |
384 | if (chip->ack) | ||
385 | chip->irq_ack = compat_irq_ack; | ||
381 | } | 386 | } |
382 | 387 | ||
383 | static inline void mask_ack_irq(struct irq_desc *desc, int irq) | 388 | static inline void mask_ack_irq(struct irq_desc *desc, int irq) |
@@ -386,8 +391,8 @@ static inline void mask_ack_irq(struct irq_desc *desc, int irq) | |||
386 | desc->irq_data.chip->mask_ack(irq); | 391 | desc->irq_data.chip->mask_ack(irq); |
387 | else { | 392 | else { |
388 | desc->irq_data.chip->irq_mask(&desc->irq_data); | 393 | desc->irq_data.chip->irq_mask(&desc->irq_data); |
389 | if (desc->irq_data.chip->ack) | 394 | if (desc->irq_data.chip->irq_ack) |
390 | desc->irq_data.chip->ack(irq); | 395 | desc->irq_data.chip->irq_ack(&desc->irq_data); |
391 | } | 396 | } |
392 | desc->status |= IRQ_MASKED; | 397 | desc->status |= IRQ_MASKED; |
393 | } | 398 | } |
@@ -626,8 +631,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc) | |||
626 | kstat_incr_irqs_this_cpu(irq, desc); | 631 | kstat_incr_irqs_this_cpu(irq, desc); |
627 | 632 | ||
628 | /* Start handling the irq */ | 633 | /* Start handling the irq */ |
629 | if (desc->irq_data.chip->ack) | 634 | desc->irq_data.chip->irq_ack(&desc->irq_data); |
630 | desc->irq_data.chip->ack(irq); | ||
631 | 635 | ||
632 | /* Mark the IRQ currently in progress.*/ | 636 | /* Mark the IRQ currently in progress.*/ |
633 | desc->status |= IRQ_INPROGRESS; | 637 | desc->status |= IRQ_INPROGRESS; |
@@ -680,8 +684,8 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc) | |||
680 | 684 | ||
681 | kstat_incr_irqs_this_cpu(irq, desc); | 685 | kstat_incr_irqs_this_cpu(irq, desc); |
682 | 686 | ||
683 | if (desc->irq_data.chip->ack) | 687 | if (desc->irq_data.chip->irq_ack) |
684 | desc->irq_data.chip->ack(irq); | 688 | desc->irq_data.chip->irq_ack(&desc->irq_data); |
685 | 689 | ||
686 | action_ret = handle_IRQ_event(irq, desc->action); | 690 | action_ret = handle_IRQ_event(irq, desc->action); |
687 | if (!noirqdebug) | 691 | if (!noirqdebug) |