Modify CPUBoostingController 60/297260/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 16 Aug 2023 04:58:14 +0000 (13:58 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 16 Aug 2023 04:58:14 +0000 (13:58 +0900)
This patch removes the RESET_ON_FORK flag. If the flag is set,
the scheduling policy is not inherited to the sub thread.

Change-Id: I8f63106271907749bdabff033881aab619f2e892
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/launchpad-common/cpu_boost_controller.cc

index 7ef0119..eb06ffe 100644 (file)
@@ -33,8 +33,8 @@ void CPUBoostController::DoBoost(pid_t pid, Level level, int timeout_msec) {
   };
 
   int ret = resource_set_cpu_boosting(res_pid,
-      static_cast<cpu_boosting_level_e>(level), CPU_BOOSTING_RESET_ON_FORK,
-      timeout_msec);
+      static_cast<cpu_boosting_level_e>(level),
+      static_cast<cpu_boosting_flag_e>(0), timeout_msec);
   if (ret != 0)
     _E("resource_set_cpu_boosting() is failed. error: %d", ret);
   else