Re: [PATCH 3/3] printk: Avoid all wakeups from printk

Ingo Molnar
2011-06-09T13:32:44Z

* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

> +void console_unlock(void)
> +{
> + if (console_suspended) {
> + up(&console_sem);
> + return;
> + }
> +
> + __console_flush();
> +
> + up(&console_sem);
> +}

Hm, this seems to be a very roundabout way of doing:

void console_unlock(void)
{
if (!console_suspended)
__console_flush();

up(&console_sem);
}

Right?

Thanks,

Ingo