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>
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;