sm6375-common: power-libperfmgr: ADPF: avoid to call close() twice
To get rid of error logs, avoid to call close() twice. 07-29 17:20:35.341 E powerhal-libperfmgr: Unexpected Error! Failed to look up tid:2585 in TidRefCountMap 07-29 17:20:35.341 E powerhal-libperfmgr: Unexpected Error! Failed to look up tid:2586 in TidRefCountMap 07-29 17:20:35.341 E powerhal-libperfmgr: Unexpected Error! Failed to look up tid:2031 in TidRefCountMap 07-29 17:20:35.341 E powerhal-libperfmgr: Unexpected Error! Failed to look up tid:2585 in TidRefCountMap Bug: 194775170 Test: build and check log. Change-Id: I91adf907b837382f68935b9054e19465a499049c
This commit is contained in:
parent
0515fc6f25
commit
20db3354f7
2 changed files with 6 additions and 1 deletions
|
|
@ -108,6 +108,7 @@ class PowerHintSession : public BnPowerHintSession {
|
|||
sp<MessageHandler> mPowerManagerHandler;
|
||||
std::mutex mLock;
|
||||
const nanoseconds kAdpfRate;
|
||||
std::atomic<bool> mSessionClosed = false;
|
||||
};
|
||||
|
||||
} // namespace pixel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue