irq: Warn when shared interrupts do not match on NO_SUSPEND
authorPeter Zijlstra <peterz@infradead.org>
Thu, 24 Jul 2014 13:39:21 +0000 (15:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Jul 2014 15:32:56 +0000 (17:32 +0200)
commit4fae4e7624653ef498d0e2a38f00620b9701ab04
treeb54ebbc2342f696970bf2c760087a48cc8be09b6
parent1b0733837a9b2b8e006c787c628d0085073a5c36
irq: Warn when shared interrupts do not match on NO_SUSPEND

When suspend_device_irqs() iterates all descriptors, its pointless if
one has NO_SUSPEND set while another has not.

Validate on request_irq() that NO_SUSPEND state maches for SHARED
interrupts.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Link: http://lkml.kernel.org/r/20140724133921.GY6758@twins.programming.kicks-ass.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/manage.c