mm: reduce watermark if free cma is too large [1/1]
authortao zeng <tao.zeng@amlogic.com>
Fri, 26 Oct 2018 09:51:30 +0000 (17:51 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 30 Oct 2018 03:07:51 +0000 (20:07 -0700)
commit68a4d449ed36f87f214ab49d4aedd1f823a61ff2
tree1fd9e81f6974927a15201d09fceb1723db743039
parent8b2c5df07ab866e3a5dd229532649a2c65073f40
mm: reduce watermark if free cma is too large [1/1]

PD#SWPL-807

Problem:
Sometimes driver can't allocation memory under atomic environment.
And free pages is enough but they are nearly ALL CMA pages.

Solution:
Reduce watermark with harf of free cma pages even allocation support
CMA.

Verify:
P212

Change-Id: I8e49768d4384ed064775537754a2b7f09a5bbb7c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
mm/page_alloc.c