mm: update cma policy and debug sysfs
authorTao Zeng <tao.zeng@amlogic.com>
Wed, 6 Sep 2017 08:38:09 +0000 (16:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 7 Sep 2017 03:24:23 +0000 (20:24 -0700)
commit1e0af8baa11fb0480b559d334844421593bbe5a1
tree490e931e99d5a02cbea60d16060982aec223d94e
parent038eab447d6fd693ea7d46c339de7d2ff28ed091
mm: update cma policy and debug sysfs

PD#150194: mm: update cma policy and debug sysfs

1. For movable memory, using CMA first, this can help to avoid
   low memory issue and driver can't allocate pages issue;
2. change /proc/slabinfo sysfs with total size print of each slab;
3. change /proc/pagetypeinfo with toatal pages of each migrate type;
4. add statistics for free pages of each migrate type, and show in
   echo m > /proc/sysrq-trigger.

Change-Id: I2fdab73c2d1278cd025185362a1159e4f683166b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
include/linux/cma.h
include/linux/mmzone.h
include/linux/vmstat.h
mm/cma.c
mm/page_alloc.c
mm/slab_common.c
mm/vmstat.c