Go to file
jimmyshiu 6ab718385b power-libperfmgr: ADPF: optimize the wakeup performance and fix unstable boost.
Optimize boost:
A more efficient way is to trigger the wakeup boost through mTidSessionListMap, so the time
   complexity reduce from O(n^3) to O(n^2).

The original code path:
  PSM:wakeSessions() contains a loop that is O(n),
  inside the loop, it calls to PHS::wakeup() which call to
  PSM::setUclampMinLocked(), and
  PSM::setUclampMinLocked() contains two loops O(n^2)

The new code path:
  PSM::wakeSessions() directly checks all the ADPF tasks O(n) and
  get the wakeup boost value O(n), then directly set the uclamp.min
  The time complexity lower to O(n^2).

Fix unstable boost:
The original flow is to find max boost and wake it up from stale state
one by one. But the previous woken ones would not be counted when the later ones finding their max boost value.
The new flow boost all the tasks first, then wake up all those sessions.

Bug: 235510337
Test: Manually playing UIBench -> Transitions -> ActivityTransition
Change-Id: I995673b74401e198eb72188134ba1ebc134f971c
2023-11-24 16:31:32 +00:00
aidl power-libperfmgr: ADPF: optimize the wakeup performance and fix unstable boost. 2023-11-24 16:31:32 +00:00
hidl xiaomi: Keep a single clang-format in rootdir 2023-11-13 01:39:53 +01:00
IFAAService IFAAService: Move from FOD to UDFPS naming convention 2022-05-05 18:08:27 +01:00
interfaces interfaces: mtdservice: Initial dump 2022-05-05 10:27:08 +01:00
megvii megvii: Return a char pointer for some stubs instead 2022-06-21 18:33:32 +02:00
sensors xiaomi: Keep a single clang-format in rootdir 2023-11-13 01:39:53 +01:00
.clang-format xiaomi: Keep a single clang-format in rootdir 2023-11-13 01:39:53 +01:00
Android.bp common: Define soong namespace 2020-01-31 19:54:58 -05:00
Android.mk power-libperfmgr: Import power HAL AIDL implementation 2021-04-18 22:38:40 +01:00