Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

oops handling: ensure that any oops is flushed to the mtdoops console

This used to work unpatched with older kernels, during the development
phase of mtdoops. Before commit e3e8a75d2acfc61ebf25524666a0a2c6abb0620c
a space was printed with console_loglevel set to 15, which probably
flushed the oops message as a side effect.

This is another patch from the Nokia N810 kernel.

Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Viktor Rosendahl and committed by
Linus Torvalds
b61312d3 f41ced8f

+2
+2
lib/bust_spinlocks.c
··· 12 12 #include <linux/tty.h> 13 13 #include <linux/wait.h> 14 14 #include <linux/vt_kern.h> 15 + #include <linux/console.h> 15 16 16 17 17 18 void __attribute__((weak)) bust_spinlocks(int yes) ··· 23 22 #ifdef CONFIG_VT 24 23 unblank_screen(); 25 24 #endif 25 + console_unblank(); 26 26 if (--oops_in_progress == 0) 27 27 wake_up_klogd(); 28 28 }