summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/power4-pmu.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-04-23 14:30:01 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-04-30 02:45:25 +0200
commit8751ed14dcdd692733072966bf97b6b8c21ccaad (patch)
tree53d904908b1072b335e4020fe12ffe2ad647e67a /arch/powerpc/perf/power4-pmu.c
parentLinux 3.4-rc5 (diff)
downloadlinux-8751ed14dcdd692733072966bf97b6b8c21ccaad.tar.xz
linux-8751ed14dcdd692733072966bf97b6b8c21ccaad.zip
powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller
The mpc8xx driver uses a reference to NR_IRQS that is buggy. It uses NR_IRQs for the array size of the ppc_cached_irq_mask bitmap, but NR_IRQs could be smaller than the number of hardware irqs that ppc_cached_irq_mask tracks. Also, while fixing that problem, it became apparent that the interrupt controller only supports 32 interrupt numbers, but it is written as if it supports multiple register banks which is more complicated. This patch pulls out the buggy reference to NR_IRQs and fixes the size of the ppc_cached_irq_mask to match the number of HW irqs. It also drops the now-unnecessary code since ppc_cached_irq_mask is no longer an array. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/perf/power4-pmu.c')
0 files changed, 0 insertions, 0 deletions