sm6375-common: power-libperfmgr: ADPF: refine StaleTimeHandler

Bug: 256515601
Test: build
Change-Id: Ia7f80c838961b837733c457b189f16c6433cf3c3
This commit is contained in:
Jimmy Shiu 2024-07-18 20:16:00 +05:30 committed by Anand S
commit beb75b2b3d
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
2 changed files with 16 additions and 28 deletions

View file

@ -92,10 +92,8 @@ class PowerHintSession : public BnPowerHintSession {
private:
class StaleTimerHandler : public MessageHandler {
public:
StaleTimerHandler(PowerHintSession *session)
: mSession(session), mIsMonitoring(false), mIsSessionDead(false) {}
StaleTimerHandler(PowerHintSession *session) : mSession(session), mIsSessionDead(false) {}
void updateTimer();
void updateTimer(time_point<steady_clock> staleTime);
void handleMessage(const Message &message) override;
void setSessionDead();
@ -104,7 +102,6 @@ class PowerHintSession : public BnPowerHintSession {
std::mutex mClosedLock;
std::mutex mMessageLock;
std::atomic<time_point<steady_clock>> mStaleTime;
std::atomic<bool> mIsMonitoring;
bool mIsSessionDead;
};