cpu-sched: Refactor common cpu affinity code 58/287858/8
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 7 Feb 2023 07:00:18 +0000 (16:00 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 15 Feb 2023 05:46:27 +0000 (14:46 +0900)
commit9a6d872377c939f540fc8919458e11be0395e1e2
treeeb7f03fc91b1d5effdb1c8f4c0ccc161276bc772
parent93916119c25b65eb1607ebb79798910b6594dd7b
cpu-sched: Refactor common cpu affinity code

This patch includes
  - Refactoring of cpu-sched related code
    * 'cpu_sched_parse_cpuset' and 'cpu_shced_new_core' functions are moved
  from cpu-sched.c to config-parser.c/h
    * Cpu common data structure (i.e., 'coreset' and 'core') is moved
  from cpu-sched.c to cpu-common.h
    * Comments are modified
  - Renaming variable
    * Data structure: 'core' -> 'cpu_info' and 'coreset' -> 'cpuset_info'
    * Element: 'id' -> 'cpu_id' and 'on' -> 'online'
    * Other: minor change (such as local variable)

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