]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: mpic: Cleanup flow type handling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Mar 2011 15:20:15 +0000 (16:20 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Mar 2011 12:48:10 +0000 (14:48 +0200)
commitbdea4f4758fcaeb355aaef5adcf31e5e92e4411e
treea0fb6efba75b1c61ce801f0965037cc2a0c8d9b0
parent48633d38ec56988dca6d0f42b1a00c0131ffdd3b
powerpc: mpic: Cleanup flow type handling

The core irq_set_type() function updates the flow type when the chip
callback returns 0. So setting the type is bogus.

The new core code allows to update the type in irq_data and return
IRQ_SET_MASK_OK_NOCOPY, so the core code will not touch it, except for
setting the IRQ_LEVEL flag.

Retrieve the IRQ_LEVEL information from irq_data which avoids a
redundant sparse irq lookup as well.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/powerpc/sysdev/mpic.c