power-libperfmgr: Set min MIF freq for 1st frame

Give the first frame minimum mif freq to avoid the situation that
mif at lower level but memlat can't reflect the loading in time.

Bug: 259275437
Bug: 263383561
Test: manual

Original-Change-Id: I1dbcc23fa4a7bc2e3daf05b7cc0489a1ac5953d5
Change-Id: I2f34ba6111027832cf0e544ebc288116855c47cb
Signed-off-by: Luke Chang <lukechang@google.com>
This commit is contained in:
Luke Chang 2022-12-20 16:24:47 +00:00 committed by Michael Bestas
parent 3ce1ad239c
commit e4b318db52
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -364,6 +364,7 @@ ndk::ScopedAStatus PowerHintSession::sendHint(SessionHint hint) {
ALOGE("Error: hint is invalid");
return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT);
}
setCpuLoadChangeHint(toString(hint));
mLastUpdatedTime.store(std::chrono::steady_clock::now());
if (ATRACE_ENABLED()) {
mLastHintSent = static_cast<int>(hint);