cpu-sched: Support cpu affinity pinning for App 94/288094/10
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 9 Feb 2023 02:32:19 +0000 (11:32 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 15 Feb 2023 07:02:44 +0000 (16:02 +0900)
commit4bd2ee3dd53feec12bf465c9318a969ee2292942
treef87a79f3a0a36426222f59db520a42a63d7ff6d5
parent9a6d872377c939f540fc8919458e11be0395e1e2
cpu-sched: Support cpu affinity pinning for App

This patch includes:
  - Parse configuration(s) of per app cpu affinity (config-parser.c/h)
  - Update of README to reflect per App cpu affinity (README)
  - Register cpu affinity fixed app in the list (cpu-sched.c)
  - Read /sys/devices/system/cpu/online to know onlie cpuset and
reflect the current online cpuset info to cpuset cgroup

Per app cpu affinity pinning is different from foreground cpu affinity
  - foreground cpu affinity: pinning cpu affinity for foreground status apps
    * foreground app status detect -> pinning cpu affinity
  - per App cpu affinity: pinning cpu affinity for fixed apps
  regardless of app status
* app launch detect -> pinning cpu affinity

Change-Id: Ibef926c5b40049ce00b97cf2ba74f83784efdccd
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
conf/README
src/common/conf/config-parser.c
src/common/conf/config-parser.h
src/common/proc-common.h
src/resource-optimizer/cpu/cpu-sched.c