[conflict] lmkd: set normal scheduling policy for reaper threads am: ab4c6d86e0 am: a263af2be3 am: 14588b3000

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/lmkd/+/19368388

Change-Id: I96feaf0ea3a60a3a33e6d78f5eef69d41bef5dcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Suren Baghdasaryan 2022-07-20 20:35:01 +00:00 committed by Automerger Merge Worker
commit ddd0843a73
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool Reaper::init(int comm_fd) {
}
// set normal scheduling policy for the reaper thread
if (pthread_setschedparam(thread_pool_[thread_cnt_], SCHED_OTHER, &param)) {
ALOGW("set SCHED_OTHER failed %s", strerror(errno));
ALOGW("set SCHED_FIFO failed %s", strerror(errno));
}
snprintf(name, sizeof(name), "lmkd_reaper%d", thread_cnt_);
if (pthread_setname_np(thread_pool_[thread_cnt_], name)) {