diff options
author | Zhou Yanjie <zhouyanjie@zoho.com> | 2019-10-02 19:25:25 +0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2019-11-10 18:55:31 +0000 |
commit | b8b0145f7d0e24d98a58b7e54051dca0c1d77526 (patch) | |
tree | d08b52fe90ae102d5510d5aa28664b5093eece00 /drivers/irqchip/irq-ti-sci-inta.c | |
parent | 8bc7464b5140218cb714abae55ea4cfe26b30c96 (diff) | |
download | linux-b8b0145f7d0e24d98a58b7e54051dca0c1d77526.tar.gz linux-b8b0145f7d0e24d98a58b7e54051dca0c1d77526.tar.bz2 linux-b8b0145f7d0e24d98a58b7e54051dca0c1d77526.zip |
irqchip: Ingenic: Add process for more than one irq at the same time.
Add process for the situation that more than one irq is coming to
a single chip at the same time. The original code will only respond
to the lowest setted bit in JZ_REG_INTC_PENDING, and then exit the
interrupt dispatch function. After exiting the interrupt dispatch
function, since the second interrupt has not yet responded, the
interrupt dispatch function is again entered to process the second
interrupt. This creates additional unnecessary overhead, and the
more interrupts that occur at the same time, the more overhead is
added. The improved method in this patch is to check whether there
are still unresponsive interrupts after processing the lowest
setted bit interrupt. If there are any, the processing will be
processed according to the bit in JZ_REG_INTC_PENDING, and the
interrupt dispatch function will be exited until all processing
is completed.
Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/1570015525-27018-6-git-send-email-zhouyanjie@zoho.com
Diffstat (limited to 'drivers/irqchip/irq-ti-sci-inta.c')
0 files changed, 0 insertions, 0 deletions