power-libperfmgr: Properly handle sustained performance mode

 * when tested with [1], even after exiting the app, spm was
   still active in powerhal thereby keeping max freqs limited
   and blocking boosts

 * enable/disable it properly and end all other hints before
   enabling, to fix this issue

 * while we're at it, don't handle max freq for anything other
   than spm in powerhint

[1] https://android.googlesource.com/platform/cts/+/refs/heads/master/hostsidetests/sustainedperf

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I8962b86a3bb2509021daf7ed00507bccc4f532e0
1 file changed
tree: 0183ca4addd149a040c06aec5a32f8ff077ac09e
  1. aidl/
  2. alsa_utils_legacy/
  3. BesLoudness/
  4. bootctrl/
  5. hidl/
  6. interfaces/
  7. libmtk_bsg/
  8. libmtkperf_client/
  9. Android.bp
  10. Android.mk
  11. README.md
README.md

Common hardware components for MediaTek devices