]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic: Fix incorrect allocation of interrupt rev-map
authorKumar Gala <galak@kernel.crashing.org>
Fri, 8 May 2009 12:08:20 +0000 (12:08 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 May 2009 06:43:41 +0000 (16:43 +1000)
commit1dee0c306d6aef056df58a4e008d2f5741e759f8
tree84607395d7d74e56e32c5155ecec7efee0d90c12
parent5cb380cb72c300a9102f3d10c47782c243dedc17
powerpc/mpic: Fix incorrect allocation of interrupt rev-map

Before when we were setting up the irq host map for mpic we passed in
just isu_size for the size of the linear map.  However, for a number of
mpic implementations we have no isu (thus pass in 0) and will end up
with a no linear map (size = 0).  This causes us to always call
irq_find_mapping() from mpic_get_irq().

By moving the allocation of the host map to after we've determined the
number of sources we can actually benefit from having a linear map for
the non-isu users that covers all the interrupt sources.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c