Skip to content

Commit b61312d

Browse files
Viktor Rosendahltorvalds
authored andcommitted
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 e3e8a75 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>
1 parent f41ced8 commit b61312d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎lib/bust_spinlocks.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/tty.h>
1313
#include <linux/wait.h>
1414
#include <linux/vt_kern.h>
15+
#include <linux/console.h>
1516

1617

1718
void __attribute__((weak)) bust_spinlocks(int yes)
@@ -22,6 +23,7 @@ void __attribute__((weak)) bust_spinlocks(int yes)
2223
#ifdef CONFIG_VT
2324
unblank_screen();
2425
#endif
26+
console_unblank();
2527
if (--oops_in_progress == 0)
2628
wake_up_klogd();
2729
}

0 commit comments

Comments
 (0)