summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-09-17 14:27:41 -0700
committerColin Cross <ccross@android.com>2010-09-29 17:49:26 -0700
commit5212055c494b00acca02a4daa710a1d98c9295d1 (patch)
tree5398d38a2323b3a71f50f0fad8deb9693ef9c072 /drivers/misc
parentf75e972683eea4aa4c7454aefb3757bdb19381e1 (diff)
ramconsole/apanic: Ensure ramconsole does not get cluttered by apanic threads
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/apanic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/apanic.c b/drivers/misc/apanic.c
index fde087122473..2f858be7ef59 100644
--- a/drivers/misc/apanic.c
+++ b/drivers/misc/apanic.c
@@ -38,6 +38,8 @@
#include <linux/workqueue.h>
#include <linux/preempt.h>
+extern void ram_console_enable_console(int);
+
struct panic_header {
u32 magic;
#define PANIC_MAGIC 0xdeadf00d
@@ -468,6 +470,8 @@ static int apanic(struct notifier_block *this, unsigned long event,
if (!threads_offset)
threads_offset = ctx->mtd->writesize;
+ ram_console_enable_console(0);
+
log_buf_clear();
show_state_filter(0);
threads_len = apanic_write_console(ctx->mtd, threads_offset);