[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZsbvpWxnCRTfWsAL@alpha.franken.de>
Date: Thu, 22 Aug 2024 09:58:29 +0200
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Jiaxun Yang <jiaxun.yang@...goat.com>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
Serge Semin <fancer.lancer@...il.com>
Subject: Re: [PATCH] MIPS: cevt-r4k: Don't call get_c0_compare_int if timer
irq is installed
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@...il.com>
> Closes: https://lore.kernel.org/linux-mips/6szkkqxpsw26zajwysdrwplpjvhl5abpnmxgu2xuj3dkzjnvsf@4daqrz4mf44k/
> Signed-off-by: Jiaxun Yang <jiaxun.yang@...goat.com>
> ---
> 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 ]
Powered by blists - more mailing lists