plugin-api: resourced: Add cpu boosting module 28/297128/6
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 9 Aug 2023 08:17:47 +0000 (17:17 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 28 Aug 2023 01:19:09 +0000 (10:19 +0900)
commitfd6bd3f76fe427c90ffa8af087de26713fdc90fb
tree89c63ed04592d6fc3d8162e9aabdace504266b99
parente1fa338dee2a4687940c29ed9167258f1f8bdf2d
plugin-api: resourced: Add cpu boosting module

Add cpu boosting governor function to be called when CPU PSI is triggered
in resourced. The goal of cpu boosting governor is finding out cpu contention reason
and making actions to do in cpu boosting controller.

A new function called cpu boosting governor is added:
  - 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);
    * This function receives cpu_boosting_info_table and cpu_boosting_level
      as inputs and gives cpu_boosting_controller_action as an output.
      If return value of this function is not 0,
      then cpu_boosting_controller_action is meaningless.

Change-Id: Id6f7854278560fd8816a2e15021cccd7261b7027
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
packaging/libsyscommon.spec
src/plugin-api/common/include/system/syscommon-plugin-common.h
src/plugin-api/common/src/syscommon-plugin-api-list.h
src/plugin-api/resourced/CMakeLists.txt
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-cpu-boosting-interface.h [new file with mode: 0644]
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-cpu-boosting.h [new file with mode: 0644]
src/plugin-api/resourced/src/syscommon-plugin-resourced-cpu-boosting.c [new file with mode: 0644]