powerpc: Make IRQ_NOREQUEST last to clear, first to set
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:30:44 +0000 (19:30 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 06:54:46 +0000 (16:54 +1000)
commit41fb5e62604c5ddd00a784ffb7672dd8df5d76f2
tree9d0629053e1c528adb7a9f29e4850453732cc4ed
parent1e8c23013ed0d535e531b3b9cc30200e884f3ff0
powerpc: Make IRQ_NOREQUEST last to clear, first to set

When creating an irq, don't allow a concurent driver request until
we have caled map, which will likley call set_chip_and_handler to
change the irq_chip and its operations.

Similarly, when tearing down an IRQ, make sure no new uses come
along while we change the irq back to the nop chip and then reset
the descriptor to freed status.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c