linux/arch/powerpc/platforms/embedded6xx
Kyle Moffett 5019609fce powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count
The mpic->irq_count variable is only used as a software error-checking
limit to determine whether or not an IRQ number is valid.  In board code
which does not manually specify an IRQ count to mpic_alloc(), i.e. 0, it
is automatically detected from the number of ISUs and the ISU size.

In practice, all hardware ends up with irq_count == num_sources, so all
of the runtime checks on mpic->irq_count should just check the value of
mpic->num_sources instead.

When platform hardware does not correctly report the number of IRQs,
which only happens on the MPC85xx/MPC86xx, the MPIC_BROKEN_FRR_NIRQS
flag is used to override the detected value of num_sources with the
manual irq_count parameter.  Since there's no need to manually specify
the number of IRQs except in this case, the extra flag can be eliminated
and the test changed to "irq_count != 0".

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-02-23 10:49:59 +11:00
..
c2k.c powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
flipper-pic.c powerpc: Remove trival irq_host_ops.unmap 2011-05-19 15:31:39 +10:00
flipper-pic.h powerpc: gamecube/wii: flipper interrupt controller support 2009-12-12 22:24:28 -07:00
gamecube.c powerpc/kexec: Remove empty ppc_md.machine_kexec_prepare 2011-01-21 14:08:36 +11:00
hlwd-pic.c powerpc: Remove trival irq_host_ops.unmap 2011-05-19 15:31:39 +10:00
hlwd-pic.h powerpc: wii: hollywood interrupt controller support 2009-12-12 22:24:30 -07:00
holly.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
Kconfig powerpc: drop unused Kconfig symbols 2011-10-31 23:39:52 +01:00
linkstation.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
ls_uart.c
Makefile powerpc: wii: platform support 2009-12-12 22:24:30 -07:00
mpc10x.h
mpc7448_hpc2.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
prpmc2800.c powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
storcenter.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
usbgecko_udbg.c powerpc/gamecube/wii: Fix off-by-one error in ugecon/usbgecko_udbg 2009-12-18 15:13:57 +11:00
usbgecko_udbg.h powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
wii.c memblock: s/memblock_analyze()/memblock_allow_resize()/ and update users 2011-12-08 10:22:08 -08:00