Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da0d209b authored by Daniel Colascione's avatar Daniel Colascione Committed by android-build-merger
Browse files

Merge "Pin lmkd for real"

am: 625d1383

Change-Id: If813c79b3f321faa5fc34d70078c30c0966a3676
parents ef44dd23 625d1383
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();