OSDN Git Service

apanic: Send magic sequence to suspend ramconsole before we start dumping threads
authorSan Mehat <san@google.com>
Mon, 14 Sep 2009 21:53:56 +0000 (14:53 -0700)
committerSan Mehat <san@google.com>
Wed, 16 Sep 2009 19:40:18 +0000 (12:40 -0700)
Signed-off-by: San Mehat <san@google.com>
drivers/misc/apanic.c

index 7a5e125..1872da1 100644 (file)
@@ -459,6 +459,8 @@ static int apanic(struct notifier_block *this, unsigned long event,
        if (!threads_offset)
                threads_offset = ctx->mtd->writesize;
 
+       /* Disable ramconsole */
+       printk(KERN_EMERG "!@#$ RAMCONSOLE_DISABLE $#@!");
        log_buf_clear();
        show_state_filter(0);
        threads_len = apanic_write_console(ctx->mtd, threads_offset);