WSL2-Linux-Kernel/arch/mips
Jiaxun Yang e6cd871627 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:07:50 +02:00
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 14:52:50 -08:00
ar7
ath25 mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
ath79
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 12:35:30 +02:00
bcm63xx MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2022-12-31 13:14:05 +01:00
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-07-05 09:14:29 +02:00
boot MIPS: dts: loongson: Fix ls2k1000-rtc interrupt 2024-08-19 05:45:31 +02:00
cavium-octeon MIPS: OCTEON: warn only once if deprecated link status is being used 2022-12-31 13:14:05 +01:00
cobalt
configs Remove DECnet support from kernel 2023-06-21 15:59:15 +02:00
crypto
dec mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n 2022-04-08 14:23:38 +02:00
fw MIPS: fw: Allow firmware to pass a empty env 2023-05-11 23:00:17 +09:00
generic MIPS: generic/yamon-dt: fix uninitialized variable error 2021-11-25 09:48:36 +01:00
include MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later 2024-08-19 05:45:24 +02:00
ingenic
jazz MIPS/jazzdma: return error code from jazz_dma_map_sg() 2021-08-09 17:13:05 +02:00
kernel MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-09-12 11:07:50 +02:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2023-12-03 07:31:23 +01:00
lantiq MIPS: vpe-mt: drop physical_memsize 2024-03-01 13:21:51 +01:00
lib MIPS: Fix build error due to PTR used in more places 2022-02-16 12:56:16 +01:00
loongson2ef
loongson32 MIPS: Loongson32: Fix PHY-mode being left unspecified 2022-09-28 11:11:48 +02:00
loongson64 Revert "MIPS: Loongson64: reset: Prioritise firmware service" 2024-09-04 13:23:38 +02:00
math-emu
mm mips: Fix max_mapnr being uninitialized on early stages 2024-02-23 08:54:24 +01:00
mti-malta - converted Pistachio platform to use MIPS generic kernel 2021-09-03 11:11:54 -07:00
n64
net bpf, mips: Validate conditional branch offsets 2021-09-15 21:38:16 +02:00
netlogic
pci MIPS: Octeron: remove source file executable bit 2024-08-19 05:45:06 +02:00
pic32 MIPS: pic32: treat port as signed integer 2022-12-02 17:41:02 +01:00
power
ralink mips: ralink: mt7621: do not use kzalloc too early 2022-12-31 13:14:04 +01:00
rb532 MIPS: RB532: fix return value of __setup handler 2022-04-08 14:23:39 +02:00
sgi-ip22
sgi-ip27 memblock: allow to specify flags with memblock_add_node() 2023-12-20 15:17:33 +01:00
sgi-ip30 MIPS: ip30: ip30-console: Add missing include 2024-08-19 05:45:21 +02:00
sgi-ip32
sibyte
sni MIPS: sni: Fix the build 2021-11-25 09:48:28 +01:00
tools
txx9
vdso MIPS: Use "grep -E" instead of "egrep" 2023-09-23 11:10:00 +02:00
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-06-29 09:03:24 +02:00
Kbuild
Kbuild.platforms MIPS: fix duplicated slashes for Platform file path 2021-11-18 19:17:14 +01:00
Kconfig MIPS: Loongson64: Enable DMA noncoherent support 2023-12-13 18:36:50 +01:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile MIPS: Use "grep -E" instead of "egrep" 2023-09-23 11:10:00 +02:00
Makefile.postlink