commit | 64693b7cbbd2cf63596bcc081ec0524d9d1dc1c2 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Wed Mar 21 12:24:58 2018 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Tue Apr 03 14:41:26 2018 +0000 |
tree | 5469dc32283a4d171bccf679be274045438a44c7 | |
parent | 54058bb3c8ddb6feec88645d967b384a81ddc004 [diff] |
lmkd: only mlockall() if enabled Move process initialization, mlockall() and sched_setscheduler() to only occur if initialization succeeds and is enabled. This conserves mlock'd memory and a FIFO processing slot if (deprecated) kernel lowmemorykiller is active. Cleanup: Android coding standard compliance. Test: lmkd_unit_test Bug: 33808187 Bug: 72838192 Change-Id: I51af0235c8eca4ef958ef2d83a8071ff58b49d78