power-libperfmgr: Increase reset hint timer and base it on stale timeout

Current reset hint is too aggressive to turn off and uses arbitrary
scaling. This patch seeks to fix existing issues by changing how the
reset hint timeout is calculated.

Bug: 266266524
Bug: 266259814
Test: manual
Change-Id: Ic458ccdd0efeea36ce273681f4ff842d03f9ad7e
diff --git a/power-libperfmgr/aidl/PowerHintSession.cpp b/power-libperfmgr/aidl/PowerHintSession.cpp
index 0a1305c..8ecb10d 100644
--- a/power-libperfmgr/aidl/PowerHintSession.cpp
+++ b/power-libperfmgr/aidl/PowerHintSession.cpp
@@ -355,7 +355,8 @@
         case SessionHint::CPU_LOAD_RESET:
             mNextUclampMin.store(std::max(adpfConfig->mUclampMinInit,
                                           static_cast<uint32_t>(mDescriptor->current_min)));
-            mBoostTimerHandler->updateTimer(mDescriptor->duration * 3);
+            mBoostTimerHandler->updateTimer(duration_cast<nanoseconds>(
+                    mDescriptor->duration * adpfConfig->mStaleTimeFactor / 2.0));
             setSessionUclampMin(adpfConfig->mUclampMinHigh);
             break;
         case SessionHint::CPU_LOAD_RESUME: