plugin-api: resourced: Add is_cpu_contention_alleviated 50/298250/2
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 30 Aug 2023 08:09:51 +0000 (17:09 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 4 Sep 2023 08:56:51 +0000 (17:56 +0900)
commitb1e09d725217b32726d19483bcecac2e797c5e2a
treebe8b356e0828c20b86ba6a376650a9b165601a11
parentfd6bd3f76fe427c90ffa8af087de26713fdc90fb
plugin-api: resourced: Add is_cpu_contention_alleviated

Add is_cpu_contention_alleviated function to check whether
cpu contention is alleviated or not.

Prototype of new function is like below:
  - bool syscommon_plugin_resourced_is_cpu_contention_alleviated(
               guint timer_id, guint latest_timer_id);
    * After a stall event is monitored, a timer with some interval set.
      If no more stall events between setting timer and timeout,
      timer_id is equal to latest_timer_id.

Change-Id: I0136f445827ae49d002fd8dcb0919cef0ada40b9
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-cpu-boosting-interface.h
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-cpu-boosting.h
src/plugin-api/resourced/src/syscommon-plugin-resourced-cpu-boosting.c