[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1308612129-12488-2-git-send-email-msb@chromium.org>
Date: Mon, 20 Jun 2011 16:22:09 -0700
From: Mandeep Singh Baines <msb@...omium.org>
To: linux-kernel@...r.kernel.org
Cc: Mandeep Singh Baines <msb@...omium.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Huang Ying <ying.huang@...el.com>,
Andi Kleen <ak@...ux.intel.com>,
Hugh Dickins <hughd@...omium.org>,
Olaf Hering <olaf@...fle.de>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Dave Airlie <airlied@...il.com>
Subject: [PATCH 2/2] panic: do not unblank_screen when panic_timeout < 0
Avoid risk (of screen_unblank) and wasted cycles unblanking if
you intend to reboot immediately.
Signed-off-by: Mandeep Singh Baines <msb@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Huang Ying <ying.huang@...el.com>
Cc: Andi Kleen <ak@...ux.intel.com>
Cc: Hugh Dickins <hughd@...omium.org>
Cc: Olaf Hering <olaf@...fle.de>
Cc: Jesse Barnes <jbarnes@...tuousgeek.org>
Cc: Dave Airlie <airlied@...il.com>
---
lib/bust_spinlocks.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/bust_spinlocks.c b/lib/bust_spinlocks.c
index 9681d54..6a5c7e0 100644
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -21,7 +21,8 @@ void __attribute__((weak)) bust_spinlocks(int yes)
++oops_in_progress;
} else {
#ifdef CONFIG_VT
- unblank_screen();
+ if (panic_timeout >= 0)
+ unblank_screen();
#endif
console_unblank();
if (--oops_in_progress == 0)
--
1.7.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists