mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 01:36:55 +07:00
5019609fce
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> |
||
---|---|---|
.. | ||
common.c | ||
corenet_ds.c | ||
corenet_ds.h | ||
Kconfig | ||
ksi8560.c | ||
Makefile | ||
mpc85xx_ads.c | ||
mpc85xx_cds.c | ||
mpc85xx_ds.c | ||
mpc85xx_mds.c | ||
mpc85xx_rdb.c | ||
mpc85xx.h | ||
mpc8536_ds.c | ||
p1010rdb.c | ||
p1022_ds.c | ||
p1023_rds.c | ||
p2041_rdb.c | ||
p3041_ds.c | ||
p3060_qds.c | ||
p4080_ds.c | ||
p5020_ds.c | ||
sbc8548.c | ||
sbc8560.c | ||
smp.c | ||
smp.h | ||
socrates_fpga_pic.c | ||
socrates_fpga_pic.h | ||
socrates.c | ||
stx_gp3.c | ||
tqm85xx.c | ||
xes_mpc85xx.c |