Re: [RFC 0/1] serial: 8250: nbcon_atomic_flush_pending() might trigger watchdog warnigns

From: John Ogness

Date: Thu Sep 25 2025 - 07:19:25 EST


On 2025-09-25, John Ogness <john.ogness@xxxxxxxxxxxxx> wrote:
>> I am going to try implementing the 3rd solution and see how
>> complicated it would be.
>>
>> It would be possible to change it two 2nd easily just by
>> using a global counter and updating it in emergency_enter/exit API.
>
> Basically you are talking about changing the per-CPU emergency counter
> to be global.

Sorry, I spoke too quickly there. The per-CPU emergency counter is still
necessary to make sure the CPU with the emergency is the one that is
pushing out the messages, i.e. printk() is only expensive for the CPU
dealing with an emergency.

John