Files
linux/arch/mips/kernel
Jiaxun Yang 50f2b98dc8 MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed
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>
2024-08-20 10:36:52 +02:00
..
2021-04-07 16:11:05 +02:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2024-01-08 10:39:12 +01:00
2023-12-10 17:21:38 -08:00
2024-03-07 17:18:50 +01:00
2024-02-20 12:41:52 +01:00
2023-12-21 15:33:44 +01:00
2024-01-08 10:39:12 +01:00
2024-01-08 10:39:12 +01:00
2022-05-19 19:30:31 +02:00
2024-03-07 17:18:50 +01:00
2023-12-10 17:21:38 -08:00
2023-12-10 17:21:38 -08:00
2023-06-09 10:34:14 +02:00
2023-12-10 17:21:38 -08:00
2024-01-08 10:39:12 +01:00
2020-05-07 11:55:47 +02:00