]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/mips-gic: Replace open coded online CPU iterations
authorPaul Burton <paulburton@kernel.org>
Mon, 28 Oct 2024 17:59:23 +0000 (18:59 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 30 Oct 2024 14:41:18 +0000 (15:41 +0100)
commit496461050b74d44a2adb39511403a36c9a555bc7
tree901d99f0ca1d12d6b2978c779d840ac39d7baef4
parentd1a128bc3057a090b97ab5a9f938874df3d3f124
irqchip/mips-gic: Replace open coded online CPU iterations

Several places in the MIPS GIC driver iterate over the online CPUs to
operate on the CPU's GIC local register block, accessed via the GIC's
other/redirect register block.

Abstract the process of iterating over online CPUs & configuring the
other/redirect region to access their registers through a new
for_each_online_cpu_gic() macro and convert all usage sites over.

Signed-off-by: Paul Burton <paulburton@kernel.org>
Signed-off-by: Chao-ying Fu <cfu@wavecomp.com>
Signed-off-by: Dragan Mladjenovic <dragan.mladjenovic@syrmia.com>
Signed-off-by: Aleksandar Rikalo <arikalo@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/all/20241028175935.51250-2-arikalo@gmail.com
drivers/irqchip/irq-mips-gic.c