cpu-boosting: Check whether cpu stall handler is turned on
[platform/core/system/resourced.git] / src / resource-optimizer / cpu / cpu-boosting.c
index 4ce18b5..7622540 100644 (file)
@@ -382,8 +382,11 @@ void cpu_boosting_wakeup_cpu_boosting_thread(void)
         * so, the monitor should wakeup the cpu boosting main thread
         * to call governor.
         */
-       g_main_context_invoke(cpu_boosting_context,
-                       cpu_boosting_governor_govern_request, NULL);
+       if (cpu_boosting_is_enabled_of_cpu_stall_handler())
+               g_main_context_invoke(cpu_boosting_context,
+                               cpu_boosting_governor_govern_request, NULL);
+       else
+               _I("[CPU-BOOSTING] CPU stall handler is turned off");
 }
 
 static cpu_boosting_level_e cpu_boosting_level_search(struct sched_attr attr)