linux/arch/powerpc/platforms/85xx
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
..
Kconfig powerpc/p3060qds: Fix select of 'MPC8xxx_GPIO' 2011-11-23 22:55:47 -06:00
Makefile powerpc/85xx: Renamed mpc85xx_common.c to common.c 2011-11-24 02:01:41 -06:00
common.c powerpc/85xx: Renamed mpc85xx_common.c to common.c 2011-11-24 02:01:41 -06:00
corenet_ds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
corenet_ds.h powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
ksi8560.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
mpc85xx.h powerpc/85xx: consolidate of_platform_bus_probe calls 2011-11-24 02:01:41 -06:00
mpc85xx_ads.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
mpc85xx_cds.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
mpc85xx_ds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
mpc85xx_mds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
mpc85xx_rdb.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
mpc8536_ds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
p1010rdb.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
p1022_ds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
p1023_rds.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00
p2041_rdb.c powerpc/85xx: Rename p2040_rdb.c to p2041_rdb.c 2011-10-06 23:32:57 -05:00
p3041_ds.c powerpc/85xx: disable timebase synchronization under the hypervisor 2011-06-27 08:36:19 -05:00
p3060_qds.c powerpc/85xx: Fix compile error on p3060_qds.c 2011-11-23 22:55:47 -06:00
p4080_ds.c powerpc/85xx: disable timebase synchronization under the hypervisor 2011-06-27 08:36:19 -05:00
p5020_ds.c powerpc/85xx: disable timebase synchronization under the hypervisor 2011-06-27 08:36:19 -05:00
sbc8548.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
sbc8560.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
smp.c powerpc/85xx: Move mpc85xx_smp_init() decl to a new "smp.h" 2011-12-07 13:43:06 +11:00
smp.h powerpc/85xx: Move mpc85xx_smp_init() decl to a new "smp.h" 2011-12-07 13:43:06 +11:00
socrates.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
socrates_fpga_pic.c powerpc/irq: Stop exporting irq_map 2011-05-04 15:02:15 +10:00
socrates_fpga_pic.h powerpc/85xx: Add support for the "socrates" board (MPC8544). 2009-03-27 06:42:08 -05:00
stx_gp3.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
tqm85xx.c powerpc/mpic: Invert the meaning of MPIC_PRIMARY 2011-12-07 13:43:08 +11:00
xes_mpc85xx.c powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count 2012-02-23 10:49:59 +11:00