On Tue, Aug 13, 2024 at 10:59:08AM +0100, Jiaxun Yang wrote: > 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@xxxxxxxxx> > Closes: https://lore.kernel.org/linux-mips/6szkkqxpsw26zajwysdrwplpjvhl5abpnmxgu2xuj3dkzjnvsf@4daqrz4mf44k/ > Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> > --- > arch/mips/kernel/cevt-r4k.c | 15 +++++++-------- > 1 file changed, 7 insertions(+), 8 deletions(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]