summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mem.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-05-08 14:08:20 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-05-15 08:43:41 +0200
commit31207dab7d2e63795eb15823947bd2f7025b08e2 (patch)
tree84607395d7d74e56e32c5155ecec7efee0d90c12 /arch/powerpc/mm/mem.c
parentpowerpc: Fix oprofile sampling of marked events on POWER7 (diff)
downloadlinux-31207dab7d2e63795eb15823947bd2f7025b08e2.tar.xz
linux-31207dab7d2e63795eb15823947bd2f7025b08e2.zip
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>
Diffstat (limited to 'arch/powerpc/mm/mem.c')
0 files changed, 0 insertions, 0 deletions