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

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

Merge "Pin lmkd for real" am: 625d1383

am: da0d209b

Change-Id: I774bef622b77a1cfb5cfd1b8efbe0e2bb92ea422
parents 53d69290 da0d209b
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();