diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 42890ea52f11..c04cec730a76 100755 --- a/mm/oom_kill.c +++ b/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())) {