rk29: last_log: support /proc/last_kmsg when ANDROID_RAM_CONSOLE is not enabled,...
author黄涛 <huangtao@rock-chips.com>
Fri, 2 Dec 2011 06:05:35 +0000 (14:05 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 2 Dec 2011 06:05:56 +0000 (14:05 +0800)
arch/arm/mach-rk29/last_log.c

index 7096001eb3779f9e4b1a343339ca4a0fe477a3d4..6e6ead70372b129537534d44a82ac3bc28e44ea2 100644 (file)
@@ -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;
 }