linux-stable/arch/mips/kernel
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
..
syscalls mips: fix compat_sys_lseek syscall 2024-07-27 10:40:19 +02:00
.gitignore
asm-offsets.c MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
binfmt_elfn32.c MIPS: Fix malformed NT_FILE and NT_SIGINFO in 32bit coredumps 2021-01-19 18:27:20 +01:00
binfmt_elfo32.c MIPS: Fix malformed NT_FILE and NT_SIGINFO in 32bit coredumps 2021-01-19 18:27:20 +01:00
bmips_5xxx_init.S
bmips_vec.S
branch.c MIPS: kernel: include probes-common.h header in branch.c 2020-09-21 22:14:24 +02:00
cacheinfo.c drivers: base: cacheinfo: Get rid of DEFINE_SMP_CALL_CACHE_FUNCTION() 2021-09-26 14:08:59 +02:00
cevt-bcm1480.c
cevt-ds1287.c
cevt-gt641xx.c
cevt-r4k.c MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed 2024-09-12 11:06:49 +02:00
cevt-sb1250.c
cevt-txx9.c
cmpxchg.c
cps-vec-ns16550.S mips: Add CPS_NS16550_WIDTH config 2020-05-22 09:12:52 +02:00
cps-vec.S
cpu-probe.c MIPS: Loongson64: Set timer mode in cpu-probe 2024-09-04 13:17:42 +02:00
cpu-r3k-probe.c MIPS: cpu-probe: introduce exclusive R3k CPU probe 2020-10-12 12:05:16 +02:00
crash.c
crash_dump.c
csrc-bcm1480.c
csrc-ioasic.c
csrc-r4k.c mips: csrc-r4k: Mark R4K timer as unstable if CPU freq changes 2020-05-22 09:14:06 +02:00
csrc-sb1250.c
early_printk.c
early_printk_8250.c
elf.c mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan 2024-02-23 08:42:01 +01:00
entry.S
fpu-probe.c MIPS: cpu-probe: move fpu probing/handling into its own file 2020-10-12 12:04:50 +02:00
fpu-probe.h MIPS: cpu-probe: move fpu probing/handling into its own file 2020-10-12 12:04:50 +02:00
ftrace.c MIPS: ftrace: Remove redundant #ifdef CONFIG_DYNAMIC_FTRACE 2020-08-17 13:00:24 +02:00
genex.S MIPS: handle Loongson-specific GSExc exception 2020-07-31 17:52:47 +02:00
gpio_txx9.c
head.S MIPS: Loongson-3: Enable COP2 usage in kernel 2020-09-21 22:15:03 +02:00
i8253.c
idle.c sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
irq-gt641xx.c
irq-msc01.c
irq-rm7000.c
irq.c
irq_txx9.c
jump_label.c MIPS: jump_label: Fix compat branch range check 2022-11-16 09:57:15 +01:00
kgdb.c
kprobes.c mips: kprobes: Use generic kretprobe trampoline handler 2020-09-08 11:52:33 +02:00
linux32.c
machine_kexec.c
Makefile MIPS: cpu-probe: introduce exclusive R3k CPU probe 2020-10-12 12:05:16 +02:00
mcount.S
mips-cm.c mips: cm: Convert to bitfield API to fix out-of-bounds access 2021-11-18 14:04:21 +01:00
mips-cpc.c mips: cpc: Fix refcount leak in mips_cpc_default_phys_base 2022-06-14 18:32:37 +02:00
mips-mt-fpaff.c MIPS: Use rcu to lookup a task in mipsmt_sys_sched_setaffinity() 2020-09-03 10:13:43 +02:00
mips-mt.c
mips-r2-to-r6-emul.c
module.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
octeon_switch.S
perf_event.c
perf_event_mipsxx.c MIPS: perf: Fix wrong check condition of Loongson event IDs 2020-09-01 13:52:33 +02:00
pm-cps.c
pm.c
probes-common.h
proc.c MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-08-21 15:15:26 +02:00
process.c arch: setup PF_IO_WORKER threads like PF_KTHREAD 2023-01-04 11:39:22 +01:00
prom.c MIPS: replace add_memory_region with memblock 2020-10-12 12:01:36 +02:00
ptrace.c MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
ptrace32.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
r4k-bugs64.c
r4k_fpu.S
r4k_switch.S
r2300_fpu.S signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT 2021-11-18 14:03:47 +01:00
r2300_switch.S
relocate.c MIPS: relocatable: fix possible boot hangup with KASLR enabled 2021-01-19 18:27:20 +01:00
relocate_kernel.S
reset.c
rtlx-cmp.c
rtlx-mt.c
rtlx.c
scall32-o32.S MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
scall64-n32.S MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
scall64-n64.S MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
scall64-o32.S MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 11:48:04 +02:00
segment.c
setup.c mips: Fix incorrect max_low_pfn adjustment 2024-01-25 14:37:53 -08:00
signal-common.h
signal.c mips: add support for TIF_NOTIFY_SIGNAL 2023-01-04 11:39:19 +01:00
signal32.c
signal_n32.c
signal_o32.c
smp-bmips.c MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores 2020-08-21 09:29:09 +02:00
smp-cmp.c
smp-cps.c MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later 2024-08-19 05:41:04 +02:00
smp-mt.c
smp-up.c
smp.c MIPS: smp: fill in sibling and core maps earlier 2022-03-19 13:44:44 +01:00
spinlock_test.c
spram.c
stacktrace.c
sync-r4k.c
syscall.c signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT 2021-11-18 14:03:47 +01:00
sysrq.c
time.c MIPS: Fix CP0 counter erratum detection for R4k CPUs 2022-05-12 12:25:29 +02:00
topology.c MIPS: CPU#0 is not hotpluggable 2020-07-26 10:18:35 +02:00
traps.c exit: Add and use make_task_dead. 2023-02-01 08:23:19 +01:00
unaligned.c uaccess: add force_uaccess_{begin,end} helpers 2020-08-12 10:57:59 -07:00
uprobes.c
vdso.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
vmlinux.lds.S MIPS: Define RUNTIME_DISCARD_EXIT in LD script 2023-04-26 11:27:40 +02:00
vpe-cmp.c MIPS: vpe-cmp: fix possible memory leak while module exiting 2023-01-14 10:15:17 +01:00
vpe-mt.c MIPS: vpe-mt: drop physical_memsize 2023-03-11 16:39:45 +01:00
vpe.c
watch.c