sm6375-common: power-libperfmgr: allow powerhint calls as soon as service starts
Bug: 147840817 Test: boot Change-Id: Ic1d6e04109683b999bb99484930e95dc9813fc59
This commit is contained in:
parent
a1435fd888
commit
3a0fabd235
5 changed files with 23 additions and 53 deletions
|
|
@ -35,17 +35,14 @@ using ::android::perfmgr::HintManager;
|
|||
|
||||
class PowerExt : public BnPowerExt {
|
||||
public:
|
||||
PowerExt(std::shared_ptr<HintManager> hm) : mHintManager(hm), mReady(false) {}
|
||||
|
||||
PowerExt(std::shared_ptr<HintManager> hm) : mHintManager(hm) {}
|
||||
ndk::ScopedAStatus setMode(const std::string &mode, bool enabled) override;
|
||||
ndk::ScopedAStatus isModeSupported(const std::string &mode, bool *_aidl_return) override;
|
||||
ndk::ScopedAStatus setBoost(const std::string &boost, int32_t durationMs) override;
|
||||
ndk::ScopedAStatus isBoostSupported(const std::string &boost, bool *_aidl_return) override;
|
||||
void setReady();
|
||||
|
||||
private:
|
||||
std::shared_ptr<HintManager> mHintManager;
|
||||
std::atomic<bool> mReady;
|
||||
};
|
||||
|
||||
} // namespace impl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue