Skip to content

Commit

Permalink
slmk: lower vmpressure trigger threshold
Browse files Browse the repository at this point in the history
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
  • Loading branch information
arter97 authored and onettboots committed Sep 3, 2022
1 parent 9d6d372 commit 2cd2c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/android/simple_lmk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2cd2c8f

Please sign in to comment.