Merge "Pin lmkd for real"

This commit is contained in:
Treehugger Robot 2018-01-03 23:23:38 +00:00 committed by Gerrit Code Review
commit 625d1383d3

View file

@ -900,7 +900,9 @@ int main(int argc __unused, char **argv __unused) {
downgrade_pressure = (int64_t)property_get_int32("ro.lmk.downgrade_pressure", 60);
is_go_device = property_get_bool("ro.config.low_ram", false);
mlockall(MCL_FUTURE);
if (mlockall(MCL_CURRENT | MCL_FUTURE))
ALOGW("mlockall failed: errno=%d", errno);
sched_setscheduler(0, SCHED_FIFO, &param);
if (!init())
mainloop();