sm6375-common: power-libperfmgr: Disable boosting when battery saver is on

* end all running boosts when battery saver is turned on,
   and block all boosts until its turned off

Change-Id: I6793d694747c27591e69594d9d46da3490673d63
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
Adithya R 2024-07-18 20:16:00 +05:30 committed by Anand S
commit 52a7d65121
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
2 changed files with 28 additions and 6 deletions

View file

@ -52,6 +52,7 @@ class Power : public ::aidl::android::hardware::power::BnPower {
private:
std::unique_ptr<InteractionHandler> mInteractionHandler;
std::atomic<bool> mSustainedPerfModeOn;
std::atomic<bool> mBatterySaverOn;
};
} // namespace pixel