sm6375-common: power-libperfmgr: ADPF: Use Adpf Profile for PID tunnables
1. Use Adpf Profile to replace system-property-based PID tunnables. 2. Add a tunable for switch PID on/off 3. Switch Adpf Profile by hint name (ex: REFRESH_120FPS) Bug: 202158746 Bug: 204444691 Bug: 206061061 Test: Build Change-Id: Ia673a6bf64d40128ca1797d1e26fe564b3b35ff1
This commit is contained in:
parent
c69f1e93fa
commit
a4ad8dc607
7 changed files with 123 additions and 150 deletions
|
|
@ -71,7 +71,7 @@ struct AppHintDesc {
|
|||
class PowerHintSession : public BnPowerHintSession {
|
||||
public:
|
||||
explicit PowerHintSession(int32_t tgid, int32_t uid, const std::vector<int32_t> &threadIds,
|
||||
int64_t durationNanos, nanoseconds adpfRate);
|
||||
int64_t durationNanos);
|
||||
~PowerHintSession();
|
||||
ndk::ScopedAStatus close() override;
|
||||
ndk::ScopedAStatus pause() override;
|
||||
|
|
@ -114,7 +114,6 @@ class PowerHintSession : public BnPowerHintSession {
|
|||
sp<StaleHandler> mStaleHandler;
|
||||
sp<MessageHandler> mPowerManagerHandler;
|
||||
std::mutex mLock;
|
||||
const nanoseconds kAdpfRate;
|
||||
std::atomic<bool> mSessionClosed = false;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue