]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit370049cc93c74f7b95f7fee4632bf71e1f1b476c
tree9d0629053e1c528adb7a9f29e4850453732cc4ed
parentc09db1577969e2d58ca6b8fb069e2ebb5bf31db6
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