]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Use irq_has_action() in eeh_disable_irq()
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 13 Oct 2009 19:44:47 +0000 (19:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:20:54 +0000 (17:20 +1100)
commit4d1469023dbdaae2cb8cc30590454a4f2cdc9736
tree505de49defb6e5f00d491d47b8896384b9e3db35
parente1f40d1e961d07f8332b405c86d0ec69b6ee9d66
powerpc/pseries: Use irq_has_action() in eeh_disable_irq()

Rather than open-coding our own check, use irq_has_action()
to check if an irq has an action - ie. is "in use".

irq_has_action() doesn't take the descriptor lock, but it
shouldn't matter - we're just using it as an indicator
that the irq is in use. disable_irq_nosync() will take
the descriptor lock before doing anything also.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh_driver.c