Skip to content

Commit b61312d

Browse files
Viktor Rosendahltorvalds
Viktor Rosendahl
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 <[email protected]> Cc: Alan Cox <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f41ced8 commit b61312d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/bust_spinlocks.c

+2
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)