irqchip/loongarch-avec: Add multi-nodes topology support
authorTianyang Zhang <zhangtianyang@loongson.cn>
Sat, 11 Jan 2025 02:37:04 +0000 (10:37 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 15 Jan 2025 09:19:20 +0000 (10:19 +0100)
commit2af257388473298898d71313cfa6092b572f2602
tree70a89b8b34a0940024aa9d5280fa71c57abf4ff4
parente3ab1fc9354fabd65ea10ce6ca4153ef07128ad0
irqchip/loongarch-avec: Add multi-nodes topology support

avecintc_init() enables the Advanced Interrupt Controller (AVEC) of
the boot CPU node, but nothing enables the AVEC on secondary nodes.

Move the enablement to the CPU hotplug callback so that secondary nodes get
the AVEC enabled too. In theory enabling it once per node would be
sufficient, but redundant enabling does no hurt, so keep the code simple
and do it unconditionally.

Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/all/20250111023704.17285-1-zhangtianyang@loongson.cn
drivers/irqchip/irq-loongarch-avec.c