sm6375-common: power-libperfmgr: ADPF: use PID algorithm to control cpu resource
The patch includes: 1. Move from folder adpf to aidl. 2. Add PowerSessionManager class to maintain hint status. And PowerHintMointor looper thread for monitoring or updating PowerHintSession status. 3. Use PID algorithm to replace the step-wise alogrithm for cpu resource control. Test: build, boot to home, trace analysis Bug: 177493042 Change-Id: Ib7d3f414225b18954350341ca22b7be87a6202e7
This commit is contained in:
parent
de42f91c95
commit
d01fb0826f
9 changed files with 809 additions and 4 deletions
|
|
@ -56,7 +56,6 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue