Re: [RT,1/1] tty/serial/sifive: Make the locking RT aware

From: Sebastian Andrzej Siewior
Date: Tue Dec 03 2024 - 05:36:22 EST


On 2024-12-03 17:40:09 [+0800], ende.tan@xxxxxxxxxxxxxxxx wrote:
> From: Tan En De <ende.tan@xxxxxxxxxxxxxxxx>
>
> The lock is a sleeping lock and local_irq_save() is not the optimsation
> we are looking for. Redo it to make it work on -RT and non-RT.

You need to state which kernel this needs to be applied to.
The change you looking for is
32c694ec3efc2 ("serial: sifive: Use uart_prepare_sysrq_char() to handle sysrq.")

> Signed-off-by: Tan En De <ende.tan@xxxxxxxxxxxxxxxx>
> Signed-off-by: Tan Ley Foon <leyfoon.tan@xxxxxxxxxxxxxxxx>

Sebastian