]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic: Fix allocation of reverse-map for multi-ISU mpics
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 22 Feb 2012 13:50:13 +0000 (13:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Feb 2012 00:33:58 +0000 (11:33 +1100)
commitd7b342465535c1136a8d9bfe24e1eb774c8180a3
tree5596915cd3980617166522aabcd7d5f8b71b5c49
parent765a17fd1ef6a8feb0e48d10dd492af6b9779a51
powerpc/mpic: Fix allocation of reverse-map for multi-ISU mpics

When using a multi-ISU MPIC, we can interrupts up to
isu_size * MPIC_MAX_ISU, not just isu_size, so allocate
the right size reverse map.

Without this, the code will constantly fallback to
a linear search.

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