kernel_samsung_a53x/arch/mips
Jiaxun Yang cc75a38dcd MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed
[ Upstream commit 50f2b98dc83de7809a5c5bf0ccf9af2e75c37c13 ]

This avoids warning:

[    0.118053] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:283

Caused by get_c0_compare_int on secondary CPU.

We also skipped saving IRQ number to struct clock_event_device *cd as
it's never used by clockevent core, as per comments it's only meant
for "non CPU local devices".

Reported-by: Serge Semin <fancer.lancer@gmail.com>
Closes: https://lore.kernel.org/linux-mips/6szkkqxpsw26zajwysdrwplpjvhl5abpnmxgu2xuj3dkzjnvsf@4daqrz4mf44k/
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:06 +01:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-11-18 12:12:48 +01:00
ar7 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath25 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath79 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm47xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-11-19 14:19:07 +01:00
boot Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cavium-octeon Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cobalt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fw Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later 2024-11-23 23:20:17 +01:00
ingenic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jazz Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kernel MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-11-23 23:21:06 +01:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2024-11-18 12:10:56 +01:00
lantiq Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson2ef Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson64 MIPS: Loongson64: env: Hook up Loongsson-2K 2024-11-23 23:20:15 +01:00
math-emu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mm mips: Fix max_mapnr being uninitialized on early stages 2024-11-18 12:13:33 +01:00
mti-malta Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netlogic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oprofile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci MIPS: Octeron: remove source file executable bit 2024-11-23 23:20:10 +01:00
pic32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pistachio Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ralink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rb532 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip22 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip27 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-11-23 23:20:15 +01:00
sgi-ip32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sibyte Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sni Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tools Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txx9 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vr41xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild.platforms Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Revert "MIPS: Loongson64: Enable DMA noncoherent support" 2024-11-18 12:12:04 +01:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.postlink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00