]> Git Repo - linux.git/commit
irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()
authorValentin Schneider <[email protected]>
Mon, 9 Nov 2020 09:41:17 +0000 (09:41 +0000)
committerMarc Zyngier <[email protected]>
Fri, 11 Dec 2020 14:47:49 +0000 (14:47 +0000)
commit6abbd6988971aaa607b026eaa0ffd2301352f2ea
treef21a5a40fbadfc2c6f43ad2894af1075d8b76108
parent550c1424acf0123ba0c17e22dfcac92d152b2f0e
irqchip/gic, gic-v3: Make SGIs use handle_percpu_devid_irq()

handle_percpu_devid_fasteoi_ipi() states:

 * The biggest difference with the IRQ version is that the interrupt is
 * EOIed early, as the IPI could result in a context switch, and we need to
 * make sure the IPI can fire again

All that can actually happen scheduler-wise within the handling of an IPI
is the raising of TIF_NEED_RESCHED (and / or folding thereof into
preempt_count); see scheduler_ipi() or sched_ttwu_pending() for instance.

Said flag / preempt_count is evaluated some time later before returning to
whatever context was interrupted, and this gates a call to
preempt_schedule_irq() (arm64_preempt_schedule_irq() in arm64).

Per the above, SGI's do not need a different handler than PPI's, so make
them use the same (handle_percpu_devid_irq).

Signed-off-by: Valentin Schneider <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c
This page took 0.051621 seconds and 4 git commands to generate.