}
}
-static bool is_cpu_contention_alleviated(guint timer_id)
-{
- /**
- * If additional monitor events are not triggered
- * for CPU_CONTENTION_HANDLE_TIMEOUT_MSEC, then restore CPU boosting level.
- */
- if (g_latest_timer_id == timer_id)
- return true;
-
- return false;
-}
-
static int restore_cpu_boosting_level(void)
{
GHashTableIter cpu_contention_handle_data_iter;
return G_SOURCE_REMOVE;
}
- if (is_cpu_contention_alleviated(*timer_id))
+ if (syscommon_plugin_resourced_is_cpu_contention_alleviated
+ (*timer_id, g_latest_timer_id))
ret = restore_cpu_boosting_level();
if (ret == RESOURCED_ERROR_OUT_OF_MEMORY)