power-libperfmgr: ADPF: report verbose log for dead thread uclamp min update
If thread is detected as dead while setting the uclamp min, it currently
sends warning log. This caused log spamming issue. Change it to verbose
log first, then consider long term solution in master branch.
Bug: 296159697
Test: Manual
Change-Id: Ia8ea632be75a431ce0f9faa4c3792635f540be16
diff --git a/power-libperfmgr/aidl/PowerSessionManager.cpp b/power-libperfmgr/aidl/PowerSessionManager.cpp
index e66ff5f..830818c 100644
--- a/power-libperfmgr/aidl/PowerSessionManager.cpp
+++ b/power-libperfmgr/aidl/PowerSessionManager.cpp
@@ -72,7 +72,11 @@
int ret = sched_setattr(tid, &attr, 0);
if (ret) {
- ALOGW("sched_setattr failed for thread %d, err=%d", tid, errno);
+ if (ret == ESRCH) {
+ ALOGV("sched_setattr failed for thread %d, err=%d", tid, errno);
+ } else {
+ ALOGW("sched_setattr failed for thread %d, err=%d", tid, errno);
+ }
}
}
} // namespace