From: 黄涛 Date: Tue, 15 Nov 2011 02:36:32 +0000 (+0800) Subject: apanic: do not depend on android ram console X-Git-Tag: firefly_0821_release~9741 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3bbeb2731b8490887366d463cb8d63b4753a5a55;p=firefly-linux-kernel-4.4.55.git apanic: do not depend on android ram console --- diff --git a/drivers/misc/apanic.c b/drivers/misc/apanic.c index 4a9f48ac7480..58cc36e25ada 100644 --- a/drivers/misc/apanic.c +++ b/drivers/misc/apanic.c @@ -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);