On 2024-05-28, Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote: > There is a `may_sleep` variable set earlier. Couldn't that be re-used? Since the printing thread cannot preempt the softirq context and since the printing threads are not started before @system_state is SYSTEM_RUNNING, using @may_sleep is OK. if (!may_sleep && con->thread && task_cpu(con->thread) == smp_processor_id()) { continue; } John Ogness