Re: [PATCH printk v7 23/35] printk: Add is_printk_legacy_deferred()
From: Petr Mladek
Date: Mon Aug 05 2024 - 11:04:30 EST
On Sun 2024-08-04 02:57:26, John Ogness wrote:
> If printk has been explicitly deferred or is called from NMI
> context, legacy console printing must be deferred to an irq_work
> context. Introduce a helper function is_printk_legacy_deferred()
> for a CPU to query if it must defer legacy console printing.
>
> In follow-up commits this helper will be needed at other call
> sites as well.
>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Best Regards,
Petr