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

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

Merge "Pin lmkd for real" am: 625d1383 am: da0d209b

am: 9d32261d

Change-Id: I9d33771ba840cbf6517c23d250d31c83dd65987c
parents 04e5fde3 9d32261d
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();