linux-stable/arch/mips
Jiaxun Yang d3ff0f98a5 MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed
[ Upstream commit 50f2b98dc8 ]

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:06:49 +02:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 14:37:53 -08:00
ar7
ath25
ath79
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 13:25:44 +02:00
bcm63xx MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2023-01-14 10:15:22 +01:00
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-07-05 09:12:37 +02:00
boot MIPS: ingenic: correct unit node address 2022-04-13 21:01:00 +02:00
cavium-octeon MIPS: OCTEON: warn only once if deprecated link status is being used 2023-01-14 10:15:22 +01:00
cobalt
configs Remove DECnet support from kernel 2023-06-21 15:45:38 +02:00
crypto
dec
fw MIPS: fw: Allow firmware to pass a empty env 2023-05-17 11:47:33 +02:00
generic
include MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later 2024-08-19 05:41:04 +02:00
ingenic
jazz
kernel MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-09-12 11:06:49 +02:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2023-12-08 08:46:09 +01:00
lantiq MIPS: vpe-mt: drop physical_memsize 2023-03-11 16:39:45 +01:00
lib
loongson2ef
loongson32 MIPS: Loongson32: Fix PHY-mode being left unspecified 2022-09-28 11:10:32 +02:00
loongson64 MIPS: Loongson64: env: Hook up Loongsson-2K 2024-08-19 05:41:02 +02:00
math-emu
mm mips: Fix max_mapnr being uninitialized on early stages 2024-02-23 08:42:30 +01:00
mti-malta
net
netlogic
oprofile
pci MIPS: Octeron: remove source file executable bit 2024-08-19 05:40:52 +02:00
pic32 MIPS: pic32: treat port as signed integer 2022-12-02 17:39:58 +01:00
pistachio
power
ralink MIPS: Use address-of operator on section symbols 2022-05-15 20:00:08 +02:00
rb532 MIPS: RB532: fix return value of __setup handler 2022-04-08 14:40:21 +02:00
sgi-ip22
sgi-ip27 MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() 2022-10-26 13:25:18 +02:00
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-19 05:41:01 +02:00
sgi-ip32
sibyte
sni
tools
txx9
vdso
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-06-29 08:59:48 +02:00
Kbuild
Kbuild.platforms
Kconfig Revert "MIPS: Loongson64: Enable DMA noncoherent support" 2024-01-05 15:12:31 +01:00
Kconfig.debug
Makefile
Makefile.postlink