From 295d5f53ed97b1c6edc2c9f193f98530be925e18 Mon Sep 17 00:00:00 2001 From: jimmyshiu Date: Mon, 25 Apr 2022 08:46:49 +0000 Subject: [PATCH] power: ADPF: log clean up Remove ALOGD logs. Bug: 230205812 Test: adb shell logcat -b all | grep libperf Change-Id: I4125afec526b76e3905e75c22fc2bfb555810fa8 --- aidl/power-libperfmgr/PowerHintSession.cpp | 2 -- aidl/power-libperfmgr/PowerHintSession.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/aidl/power-libperfmgr/PowerHintSession.cpp b/aidl/power-libperfmgr/PowerHintSession.cpp index b7685f6..deb5ebd 100644 --- a/aidl/power-libperfmgr/PowerHintSession.cpp +++ b/aidl/power-libperfmgr/PowerHintSession.cpp @@ -458,13 +458,11 @@ void PowerHintSession::HintTimerHandler::updateHintTimer( if (actualDurations.size() >= 2) { const WorkDuration &last = actualDurations[actualDurations.size() - 2]; mSession->mDescriptor->last_start = last.timeStampNanos - last.durationNanos; - ALOGD("last_start initialized by previous."); } const WorkDuration ¤t = actualDurations.back(); int64_t curr_start = current.timeStampNanos - current.durationNanos; if (!mSession->mDescriptor->last_start) { mSession->mDescriptor->last_start = curr_start; - ALOGD("last_start initialized by current."); updateHintTimer(current.durationNanos); return; } diff --git a/aidl/power-libperfmgr/PowerHintSession.h b/aidl/power-libperfmgr/PowerHintSession.h index 847dc8d..bd5882c 100644 --- a/aidl/power-libperfmgr/PowerHintSession.h +++ b/aidl/power-libperfmgr/PowerHintSession.h @@ -49,6 +49,7 @@ struct AppHintDesc { threadIds(std::move(threadIds)), duration(0LL), current_min(0), + transitioanl_min(0), is_active(true), update_count(0), integral_error(0),