lowmem: Move oom level to libsyscommon 09/296509/4
authorUnsung Lee <unsung.lee@samsung.com>
Sun, 30 Jul 2023 06:58:47 +0000 (15:58 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 31 Jul 2023 02:40:02 +0000 (02:40 +0000)
commit8eda377d8bcd986044c429cc482b5cda2eb0881a
tree760ab7a94558b6a430d9215d322fd0fb447deac5
parentc5db1ca1f029b6d99473261df988d1496b84c077
lowmem: Move oom level to libsyscommon

enum oom_level needs to be referenced by both resourced lowmem module and
resourced plugin-backend (i.e., LMK governor). Therefore, it should be located
a shared library (i.e., libsyscommon) which can be accessed by both sides.
In addition, add corresponding header file from libsyscommon.

Change-Id: I1f6c9676e1cdf9f436cbaa5413ed433dfe6e4ffe
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/cgroup/memory-cgroup.c
src/common/cgroup/memory-cgroup.h
src/resource-limiter/memory/lowmem.c
src/resource-limiter/memory/lowmem.h
src/resource-optimizer/memory/swap/swap.c