simple_lmk: Disable OOM killer when Simple LMK is enabled

The OOM killer only serves to be a liability when Simple LMK is used.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
fourteen
Sultan Alsawaf 5 years ago committed by Jenna
parent e66f1253c5
commit 506bd7e8cd
  1. 2
      mm/oom_kill.c

@ -1052,7 +1052,7 @@ bool out_of_memory(struct oom_control *oc)
unsigned long freed = 0;
enum oom_constraint constraint = CONSTRAINT_NONE;
if (oom_killer_disabled)
if (oom_killer_disabled || IS_ENABLED(CONFIG_ANDROID_SIMPLE_LMK))
return false;
if (try_online_one_block(numa_node_id())) {

Loading…
Cancel
Save