Re: [PREEMPT_RT][PATCH] printk: Enhance the condition check of msleep in pr_flush()

From: Sebastian Andrzej Siewior
Date: Mon Aug 02 2021 - 02:48:45 EST


On 2021-07-30 16:52:42 [+0206], John Ogness wrote:
> On 2021-07-30, Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote:
> > I don't have more context but scheduling should work starting with
> > SYSTEM_SCHEDULING.
>
> I also thought this, but a quick test shows that is not the case. For
> example, init/main.c:kernel_init() is called in preemptible context, but
> msleep() will hang if called at the beginning of that function.

hmm. So the timer device is missing. Everything else is fine.

> John Ogness

Sebastian