Merge "Merge tm-qpr-dev-plus-aosp-without-vendor@9129937" into stage-aosp-master

This commit is contained in:
Xin Li 2022-10-11 17:39:53 +00:00 committed by Android (Google) Code Review
commit dda11a6d3d
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ bool Reaper::init(int comm_fd) {
} }
// set normal scheduling policy for the reaper thread // set normal scheduling policy for the reaper thread
if (pthread_setschedparam(thread_pool_[thread_cnt_], SCHED_OTHER, &param)) { 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_); snprintf(name, sizeof(name), "lmkd_reaper%d", thread_cnt_);
if (pthread_setname_np(thread_pool_[thread_cnt_], name)) { if (pthread_setname_np(thread_pool_[thread_cnt_], name)) {