From: Kumar Gala Date: Fri, 8 May 2009 12:08:20 +0000 (+0000) Subject: powerpc/mpic: Fix incorrect allocation of interrupt rev-map X-Git-Tag: linux-omap-v2.6.30-rc6~10^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31207dab7d2e63795eb15823947bd2f7025b08e2;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed