irqchip/loongson-liointc: Use architecture register to get coreid
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 9 Jun 2022 17:52:41 +0000 (18:52 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 10 Jun 2022 07:57:19 +0000 (08:57 +0100)
commit6fac824f40987a54a08dfbcc36145869d02e45b1
treed7df6acbca838aa85962b0544a45cf13b0128362
parente3f056a7aafabe4ac3ad4b7465ba821b44a7e639
irqchip/loongson-liointc: Use architecture register to get coreid

fa84f89395e0 ("irqchip/loongson-liointc: Fix build error for
LoongArch") replaced get_ebase_cpunum with physical processor
id from SMP facilities. However that breaks MIPS non-SMP build
and makes booting from other cores inpossible on non-SMP kernel.

Thus we revert get_ebase_cpunum back and use get_csr_cpuid for
LoongArch.

Fixes: fa84f89395e0 ("irqchip/loongson-liointc: Fix build error for LoongArch")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220609175242.977-1-jiaxun.yang@flygoat.com
drivers/irqchip/irq-loongson-liointc.c