Merge "Pin lmkd for real"
This commit is contained in:
commit
625d1383d3
1 changed files with 3 additions and 1 deletions
|
@ -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, ¶m);
|
||||
if (!init())
|
||||
mainloop();
|
||||
|
|
Loading…
Reference in a new issue