From: 黄涛 Date: Fri, 2 Dec 2011 06:05:35 +0000 (+0800) Subject: rk29: last_log: support /proc/last_kmsg when ANDROID_RAM_CONSOLE is not enabled,... X-Git-Tag: firefly_0821_release~9732^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8876073eda4fe8e133143a1effec56fa40bc5dab;p=firefly-linux-kernel-4.4.55.git rk29: last_log: support /proc/last_kmsg when ANDROID_RAM_CONSOLE is not enabled, better support android bugreport --- diff --git a/arch/arm/mach-rk29/last_log.c b/arch/arm/mach-rk29/last_log.c index 7096001eb377..6e6ead70372b 100644 --- a/arch/arm/mach-rk29/last_log.c +++ b/arch/arm/mach-rk29/last_log.c @@ -65,6 +65,10 @@ static int __init last_log_init(void) entry->proc_fops = &last_log_file_ops; entry->size = LOG_BUF_LEN; +#ifndef CONFIG_ANDROID_RAM_CONSOLE + proc_symlink("last_kmsg", NULL, "last_log"); +#endif + return 0; }