Commit b61312d353da1871778711040464b10f5cd904df

Authored by Viktor Rosendahl
Committed by Linus Torvalds
1 parent f41ced8f10

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

lib/bust_spinlocks.c
... ... @@ -12,6 +12,7 @@
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)
... ... @@ -22,6 +23,7 @@
22 23 #ifdef CONFIG_VT
23 24 unblank_screen();
24 25 #endif
  26 + console_unblank();
25 27 if (--oops_in_progress == 0)
26 28 wake_up_klogd();
27 29 }