From 7e58ef097d924f740cd2ee9c31fed4b74af90b29 Mon Sep 17 00:00:00 2001
From: Shuide Chen <shuide.chen@amlogic.com>
Date: Wed, 22 Sep 2021 18:33:29 +0800
Subject: [PATCH] memory: use new stratedy for all R+ device [2/2]

SWPL-59636

Problem:
cma shrinker is not standard implement, which may cause
app being unexpected killed

Solution:
use lmkd to kill app.
disable cma shrinker

Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
Change-Id: I9e510f837047fdb2c8617efb3ba403c69d8f1b9c
---
 arch/arm64/boot/dts/amlogic/g12a_s905y2_deadpool.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905y2_deadpool.dts b/arch/arm64/boot/dts/amlogic/g12a_s905y2_deadpool.dts
index 6ebec4e510df..eaa90d257391 100644
--- a/arch/arm64/boot/dts/amlogic/g12a_s905y2_deadpool.dts
+++ b/arch/arm64/boot/dts/amlogic/g12a_s905y2_deadpool.dts
@@ -162,7 +162,7 @@
 
 	cma_shrinker {
 		compatible = "amlogic, cma-shrinker";
-		status = "okay";
+		status = "disabled";
 		adj  = <0 100 200 250 900 950>;
 		free = <18432 23040 27648 32256 36864 46080>;
 	};
-- 
GitLab