From cefa3020041166c38b1d488292b0d1f42d48391b Mon Sep 17 00:00:00 2001 From: huangzq2 Date: Wed, 17 Jun 2020 13:55:18 +0800 Subject: [PATCH] disable watermark boost Disable watermark boost on kernel 5.4 As it is not working fine Change-Id: I7f13f763382f1a54616079bc8258997c7f732d91 Signed-off-by: huangzq2 Reviewed-on: https://gerrit.mot.com/1625704 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key (cherry picked from commit d391f5c240aa5d5bb196c6b4c1e21c17b46f069a) Reviewed-on: https://gerrit.mot.com/1630007 Reviewed-by: Debora Raimundo Reviewed-by: Bingqian Yang Reviewed-by: Zhenxin Xi Reviewed-on: https://gerrit.mot.com/1783219 Reviewed-by: Yonghui Jia Reviewed-by: Zhizhong Ge --- mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cdf8931732de..7d51ecf3504a 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -334,7 +334,8 @@ int user_min_free_kbytes = -1; */ int watermark_boost_factor __read_mostly; #else -int watermark_boost_factor __read_mostly = 15000; +/* Moto huangzq2: Disable watermark boost as it's not working fine on kernel 4.19 */ +int watermark_boost_factor __read_mostly = 0; #endif int watermark_scale_factor = 10;