diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 12fb352b894c..3b1e5f51c332 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1018,7 +1018,11 @@ bool out_of_memory(struct oom_control *oc) unsigned long freed = 0; enum oom_constraint constraint = CONSTRAINT_NONE; - if (oom_killer_disabled || IS_ENABLED(CONFIG_ANDROID_SIMPLE_LMK)) + /* Return true since Simple LMK automatically kills in the background */ + if (IS_ENABLED(CONFIG_ANDROID_SIMPLE_LMK)) + return true; + + if (oom_killer_disabled) return false; if (try_online_one_block(numa_node_id())) {