Remove timeout setting of applying cpu boosting 26/297426/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 18 Aug 2023 04:56:24 +0000 (13:56 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 18 Aug 2023 04:56:24 +0000 (13:56 +0900)
Unfortunately, the plugin module of the resource API does not support
timeout feature properly. According to the guide, if the timeout setting
exists, we must not call the resource_clear_cpu_boosting() function.
This patch changes the timeout argument to -1 from the 5000 (milliseconds).

Change-Id: Ice734819300b11d150231a149b6529cb92315281
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/launchpad.cc

index bc51ef5..13bc490 100644 (file)
@@ -196,8 +196,7 @@ Launchpad::Launchpad(int argc, char** argv)
           std::placeholders::_1) },
   };
 
-  CPUBoostController::DoBoost(getpid(), CPUBoostController::Level::Strong,
-      5000);
+  CPUBoostController::DoBoost(getpid(), CPUBoostController::Level::Strong, -1);
   g_timeout_add(1000, [](gpointer data) {
         CPUBoostController::Clear(getpid());
         return G_SOURCE_REMOVE;