lmkd: Fix the text of the warning when pthread_setschedparam fails am: 508e73e105
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2147680 Change-Id: I581e74df34e8174e5dd9b464a7b4bc0f4893711d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4a4e1590f1
|
|
@ -133,7 +133,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, ¶m)) {
|
if (pthread_setschedparam(thread_pool_[thread_cnt_], SCHED_OTHER, ¶m)) {
|
||||||
ALOGW("set SCHED_FIFO failed %s", strerror(errno));
|
ALOGW("set SCHED_OTHER 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)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue