apanic: do not depend on android ram console
author黄涛 <huangtao@rock-chips.com>
Tue, 15 Nov 2011 02:36:32 +0000 (10:36 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 15 Nov 2011 13:24:12 +0000 (21:24 +0800)
drivers/misc/apanic.c

index 4a9f48ac74802447b5d2397a7e819fe36ef36676..58cc36e25ada9587662f3595190d2709041868a8 100644 (file)
@@ -548,7 +548,9 @@ static int apanic(struct notifier_block *this, unsigned long event,
        if (!threads_offset)
                threads_offset = ctx->mtd->writesize;
 
+#ifdef CONFIG_ANDROID_RAM_CONSOLE
        ram_console_enable_console(0);
+#endif
 
        log_buf_clear();
        show_state_filter(0);