power: reduce log spam and refine trace title

Add bunch of TODO for team as well.

Test: build
Bug: 177492680
Bug: 185368789
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ic1d5ecea10a60b23343866cd62519fda37bd6ec5
This commit is contained in:
Wei Wang 2021-04-14 10:21:50 -07:00 committed by Arian
parent 3a50977117
commit 9fd3926d5f
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
2 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ binder_status_t Power::dump(int fd, const char **, uint32_t) {
if (!::android::base::WriteStringToFd(buf, fd)) {
PLOG(ERROR) << "Failed to dump state to fd";
}
// TODO(jimmyshiu@): dump weak_ptr of PowerHintSession
fsync(fd);
return STATUS_OK;
}

View File

@ -56,6 +56,7 @@ class Power : public ::aidl::android::hardware::power::BnPower {
std::unique_ptr<InteractionHandler> mInteractionHandler;
std::atomic<bool> mSustainedPerfModeOn;
const int64_t mAdpfRate;
// TODO(jimmyshiu@): hold weak_ptr of PowerHintSession
};
} // namespace pixel