commit | 720054de96c7006e463b4f57a4749fc3786e9c0c | [log] [tgz] |
---|---|---|
author | Jimmy Shiu <jimmyshiu@google.com> | Sat Feb 25 08:44:31 2023 +0800 |
committer | Michael Bestas <mkbestas@lineageos.org> | Sat May 18 09:00:09 2024 +0300 |
tree | 82fe33e3e0eff73ea672e47f81f7854d7aa471b3 | |
parent | e4b318db52fcf6983e594cb3a329ea2196e7a5cc [diff] |
power-libperfmgr: ADPF: support sending power hint Send a hint only when the system can support the hint. Bug: 243025173 Test: PtsUiBench & CUJ Original-Change-Id: If56d0c22f8dd61f5fe27ba79f08f2963269abe41 Change-Id: I2c190ac357aa8c5b5da52e3e1566f4f62c388ba6
diff --git a/power-libperfmgr/aidl/PowerHintSession.cpp b/power-libperfmgr/aidl/PowerHintSession.cpp index 11529ac..eadc4cf 100644 --- a/power-libperfmgr/aidl/PowerHintSession.cpp +++ b/power-libperfmgr/aidl/PowerHintSession.cpp
@@ -364,7 +364,7 @@ ALOGE("Error: hint is invalid"); return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); } - setCpuLoadChangeHint(toString(hint)); + tryToSendPowerHint(toString(hint)); mLastUpdatedTime.store(std::chrono::steady_clock::now()); if (ATRACE_ENABLED()) { mLastHintSent = static_cast<int>(hint);