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
..
2021-04-07 16:11:05 +02:00
2018-10-31 08:54:16 -07:00
2020-05-22 09:09:01 +02:00
2013-02-01 10:00:22 +01:00
2021-02-15 12:23:54 +01:00
2021-03-06 08:43:39 +01:00
2020-05-15 14:53:19 +02:00
2020-07-26 10:18:35 +02:00
2021-04-07 16:11:05 +02:00
2022-08-17 14:24:06 +02:00
2024-03-01 13:21:51 +01:00
2021-01-27 21:49:16 +01:00
2020-05-07 11:55:47 +02:00