summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2018-03-21 14:24:58 -0500
committerMark Salyzyn2018-04-03 09:41:26 -0500
commit721d7c7fa31315fcb0483eb4400278bcc80cd9ad (patch)
tree5469dc32283a4d171bccf679be274045438a44c7 /lmkd/Android.bp
parentce32539cf34bc18dc6621f869ef3312bc50cdcc2 (diff)
downloadplatform-system-core-721d7c7fa31315fcb0483eb4400278bcc80cd9ad.tar.gz
platform-system-core-721d7c7fa31315fcb0483eb4400278bcc80cd9ad.tar.xz
platform-system-core-721d7c7fa31315fcb0483eb4400278bcc80cd9ad.zip
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
Diffstat (limited to 'lmkd/Android.bp')
-rw-r--r--lmkd/Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index d172755bd..2efda86cd 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -3,8 +3,8 @@ cc_binary {
3 3
4 srcs: ["lmkd.c"], 4 srcs: ["lmkd.c"],
5 shared_libs: [ 5 shared_libs: [
6 "liblog",
7 "libcutils", 6 "libcutils",
7 "liblog",
8 ], 8 ],
9 local_include_dirs: ["include"], 9 local_include_dirs: ["include"],
10 cflags: ["-Werror"], 10 cflags: ["-Werror"],