LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Viktor Rosendahl <viktor.rosendahl@nokia.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] Make sure that any oops is flushed to the mtdoops console
Date: Wed, 22 Oct 2008 18:16:28 +0300	[thread overview]
Message-ID: <1224688588-2665-2-git-send-email-viktor.rosendahl@nokia.com> (raw)
In-Reply-To: <1224688588-2665-1-git-send-email-viktor.rosendahl@nokia.com>

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>
---
 lib/bust_spinlocks.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c
index 486da62..9681d54 100644
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -12,6 +12,7 @@
 #include <linux/tty.h>
 #include <linux/wait.h>
 #include <linux/vt_kern.h>
+#include <linux/console.h>
 
 
 void __attribute__((weak)) bust_spinlocks(int yes)
@@ -22,6 +23,7 @@ void __attribute__((weak)) bust_spinlocks(int yes)
 #ifdef CONFIG_VT
 		unblank_screen();
 #endif
+		console_unblank();
 		if (--oops_in_progress == 0)
 			wake_up_klogd();
 	}
-- 
1.5.6.5


  reply	other threads:[~2008-10-22 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 15:16 [PATCH 0/1] " Viktor Rosendahl
2008-10-22 15:16 ` Viktor Rosendahl [this message]
2008-10-30 20:17   ` [PATCH 1/1] " Andrew Morton
2008-10-31 13:05     ` Viktor Rosendahl
2008-11-05  0:00       ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1224688588-2665-2-git-send-email-viktor.rosendahl@nokia.com \
    --to=viktor.rosendahl@nokia.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [PATCH 1/1] Make sure that any oops is flushed to the mtdoops console' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).