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
This commit is contained in:
parent
e4b318db52
commit
720054de96
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ ndk::ScopedAStatus PowerHintSession::sendHint(SessionHint hint) {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue