diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2024-08-13 10:59:08 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2024-08-20 10:36:52 +0200 |
commit | 50f2b98dc83de7809a5c5bf0ccf9af2e75c37c13 (patch) | |
tree | 4274341b2a83c59c999984a866e75d6588ee394f /Documentation | |
parent | 1cb6ab446424649f03c82334634360c2e3043684 (diff) | |
download | lwn-50f2b98dc83de7809a5c5bf0ccf9af2e75c37c13.tar.gz lwn-50f2b98dc83de7809a5c5bf0ccf9af2e75c37c13.zip |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions