Skip to content

Commit

Permalink
Revert "irq: Warn when shared interrupts do not match on NO_SUSPEND"
Browse files Browse the repository at this point in the history
This reverts commit 4fae4e7.

Undo because it breaks working systems.

Requested-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Jul 31, 2014
1 parent 21d1f90 commit c6f1224
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,12 +1076,9 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
* set the trigger type must match. Also all must
* agree on ONESHOT.
*/

#define IRQF_MISMATCH \
(IRQF_TRIGGER_MASK | IRQF_ONESHOT | IRQF_NO_SUSPEND)

if (!((old->flags & new->flags) & IRQF_SHARED) ||
((old->flags ^ new->flags) & IRQF_MISMATCH))
((old->flags ^ new->flags) & IRQF_TRIGGER_MASK) ||
((old->flags ^ new->flags) & IRQF_ONESHOT))
goto mismatch;

/* All handlers must agree on per-cpuness */
Expand Down

0 comments on commit c6f1224

Please sign in to comment.