From: Andrew Morton Date: Thu, 22 May 2014 00:43:34 +0000 (+1000) Subject: printk-release-lockbuf_lock-before-calling-console_trylock_for_printk-fix X-Git-Tag: next-20140530~2^2~183 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3bd16050e9c555cb7b08a4f830db95e9025336e6;p=karo-tx-linux.git printk-release-lockbuf_lock-before-calling-console_trylock_for_printk-fix fix have_callable_console() comment Cc: Jan Kara Signed-off-by: Andrew Morton --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 5077c8294b41..ee7199b4259b 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1377,7 +1377,10 @@ static void zap_locks(void) sema_init(&console_sem, 1); } -/* Check if we have any console registered that can be called early in boot. */ +/* + * Check if we have any console that is capable of printing while cpu is + * booting or shutting down. Requires console_sem. + */ static int have_callable_console(void) { struct console *con;