[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110609133228.GB21100@elte.hu>
Date: Thu, 9 Jun 2011 15:32:28 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
efault@....de, Arne Jansen <lists@...-jansens.de>
Subject: Re: [PATCH 3/3] printk: Avoid all wakeups from printk
* Peter Zijlstra <a.p.zijlstra@...llo.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists