From 2cd2c8fd983434dd0503c11bede3613f39bae647 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Thu, 10 Mar 2022 03:40:11 +0900 Subject: [PATCH] slmk: lower vmpressure trigger threshold Signed-off-by: Juhyung Park --- drivers/android/simple_lmk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/simple_lmk.c b/drivers/android/simple_lmk.c index 8fc9e0b903e7..d56546b31e8a 100644 --- a/drivers/android/simple_lmk.c +++ b/drivers/android/simple_lmk.c @@ -309,7 +309,7 @@ void simple_lmk_mm_freed(struct mm_struct *mm) static int simple_lmk_vmpressure_cb(struct notifier_block *nb, unsigned long pressure, void *data) { - if (pressure == 100 && !atomic_cmpxchg_acquire(&needs_reclaim, 0, 1)) + if (pressure >= 80 && !atomic_cmpxchg_acquire(&needs_reclaim, 0, 1)) wake_up(&oom_waitq); return NOTIFY_OK;