diff options
| -rw-r--r-- | kernel/irq/chip.c | 20 | ||||
| -rw-r--r-- | kernel/irq/handle.c | 10 |
2 files changed, 12 insertions, 18 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) |
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index f334c8c59dd2..9ba7aece0e4d 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
| @@ -299,14 +299,6 @@ static void ack_bad(struct irq_data *data) | |||
| 299 | ack_bad_irq(data->irq); | 299 | ack_bad_irq(data->irq); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | static void compat_ack_bad(unsigned int irq) | ||
| 303 | { | ||
| 304 | struct irq_desc *desc = irq_to_desc(irq); | ||
| 305 | |||
| 306 | print_irq_desc(irq, desc); | ||
| 307 | ack_bad_irq(irq); | ||
| 308 | } | ||
| 309 | |||
| 310 | /* | 302 | /* |
| 311 | * NOP functions | 303 | * NOP functions |
| 312 | */ | 304 | */ |
| @@ -338,7 +330,6 @@ struct irq_chip no_irq_chip = { | |||
| 338 | .shutdown = compat_noop, | 330 | .shutdown = compat_noop, |
| 339 | .enable = compat_noop, | 331 | .enable = compat_noop, |
| 340 | .disable = compat_noop, | 332 | .disable = compat_noop, |
| 341 | .ack = compat_ack_bad, | ||
| 342 | .end = compat_noop, | 333 | .end = compat_noop, |
| 343 | }; | 334 | }; |
| 344 | 335 | ||
| @@ -359,7 +350,6 @@ struct irq_chip dummy_irq_chip = { | |||
| 359 | .shutdown = compat_noop, | 350 | .shutdown = compat_noop, |
| 360 | .enable = compat_noop, | 351 | .enable = compat_noop, |
| 361 | .disable = compat_noop, | 352 | .disable = compat_noop, |
| 362 | .ack = compat_noop, | ||
| 363 | .end = compat_noop, | 353 | .end = compat_noop, |
| 364 | }; | 354 | }; |
| 365 | 355 | ||
