plugin-api: resourced: Add is_cpu_busy argument into govenor func 51/298251/2 accepted/tizen/unified/20230906.014630
authorUnsung Lee <unsung.lee@samsung.com>
Mon, 4 Sep 2023 06:36:47 +0000 (15:36 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 4 Sep 2023 08:57:14 +0000 (17:57 +0900)
commitc07f0071360337731b37a5659b3016bcf519ed2a
tree1c772661776b6c277b36480fd851228933b77c83
parentb1e09d725217b32726d19483bcecac2e797c5e2a
plugin-api: resourced: Add is_cpu_busy argument into govenor func

Add is_cpu_busy argument into
syscommon_plugin_resourced_cpu_boosting_governor_govern_request() function
to check whether system cpu is busy or not.
If system cpu is not busy, then resourced cpu boosting will ignore stall event
immediately.

Function called cpu boosting governor is modified:
  - int syscommon_plugin_resourced_cpu_boosting_governor_govern_request
    (GHashTable *cpu_boosting_info_table,
     cpu_boosting_level_e cpu_boosting_level,
     GSList **cpu_boosting_controller_action, bool *is_cpu_busy);
     * output argument called is_cpu_busy is added.

Change-Id: I0827f4b5ac5ffec8c64f34c124e89176e24a6c3c
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