From: 黄涛 Date: Tue, 12 Mar 2013 14:27:07 +0000 (+0800) Subject: rk: meminfo: show real totalram X-Git-Tag: firefly_0821_release~7425 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=93f7f04203b1fa71f571a30a9990823f47e265f4;p=firefly-linux-kernel-4.4.55.git rk: meminfo: show real totalram --- diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index a96282781f94..022ccc6ad4e1 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c @@ -14,6 +14,9 @@ #include #include #include "internal.h" +#ifdef CONFIG_PLAT_RK +#include +#endif void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) { @@ -105,7 +108,15 @@ static int meminfo_proc_show(struct seq_file *m, void *v) "AnonHugePages: %8lu kB\n" #endif , +#ifdef CONFIG_PLAT_RK +#ifdef CONFIG_RK29_MEM_SIZE_M + (unsigned long)CONFIG_RK29_MEM_SIZE_M * 1024, +#else + (unsigned long)ddr_get_cap() >> 10, +#endif +#else K(i.totalram), +#endif K(i.freeram), K(i.bufferram), K(cached),