sst-linux/arch/mips
Jiaxun Yang b1d2051373 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-09-12 11:10:25 +02:00
..
alchemy
ar7
ath25
ath79
bcm47xx
bcm63xx
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-06-27 13:46:18 +02:00
boot MIPS: dts: loongson: Fix ls2k1000-rtc interrupt 2024-08-11 12:35:55 +02:00
cavium-octeon
cobalt
configs
crypto
dec
fw
generic
include MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later 2024-08-03 08:49:49 +02:00
ingenic
jazz
kernel MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-09-12 11:10:25 +02:00
kvm
lantiq
lib
loongson2ef
loongson32
loongson64 MIPS: Loongson64: Test register availability before use 2024-08-03 08:49:45 +02:00
math-emu
mm
mti-malta
n64
net
pci MIPS: Octeron: remove source file executable bit 2024-08-03 08:49:22 +02:00
pic32
power
ralink
rb532
sgi-ip22
sgi-ip27
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-03 08:49:44 +02:00
sgi-ip32
sibyte
sni
tools
txx9
vdso
Kbuild
Kbuild.platforms
Kconfig
Kconfig.debug
Makefile
Makefile.postlink