]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Simplify xics direct/lpar irq_host setup
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 1 Apr 2008 06:42:27 +0000 (17:42 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Apr 2008 05:36:11 +0000 (15:36 +1000)
commite4da9ff7e3274f82941bd610a151db811188263b
tree3c04bf7471c135e2df94a15c02169b7c41078563
parent3a28906ea865986d4330df57f051082996074e85
[POWERPC] Simplify xics direct/lpar irq_host setup

The xics code currently has a direct and lpar variant of
xics_host_map, the only difference being which irq_chip they use.  If
we remember which irq_chip we're using we can combine these two
routines.  That also allows us to have a single irq_host_ops instead
of two.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/xics.c