Add 'CpuSched' & Rearrange 'Swap' sections
[platform/core/system/resourced.git] / src / common / cpu-sched-common.h
1 #ifndef __CPU_SCHED_COMMON_H__
2 #define __CPU_SCHED_COMMON_H__
3
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif /* __cplusplus */
8
9 enum cpu_sched_flag {
10         CPU_SCHED_UNINITIALIZED = 0,
11         CPU_SCHED_RUNTIME_SHARE = 1,
12         CPU_SCHED_NO_RUNTIME_SHARE = 2,
13         CPU_SCHED_RUNTIME_GREED = 4,
14 };
15
16 struct cpu_sched_conf {
17         int rt_period_us;
18         int rt_runtime_us;
19         enum cpu_sched_flag cpu_sched_flag;
20 };
21
22 struct cpu_sched_conf *get_cpu_sched_conf(void);
23 void free_cpu_sched_conf(void);
24
25 #ifdef __cplusplus
26 }
27 #endif /* __cplusplus */
28
29 #endif /* __CPU_SCHED_COMMON_H__ */