*/
/**
- * @file cpu-common.h
- * @desc cpu common process
+ * @file timer-slack.h
+ * @desc timer slack common process
**/
-#ifndef __CPU_COMMON_H__
-#define __CPU_COMMON_H__
+#ifndef __TIMER_SLACK_COMMON_H__
+#define __TIMER_SLACK_COMMON_H__
#include <sys/types.h>
+#define TIMER_CGROUP_PATH "/sys/fs/cgroup/timer_slack"
+#define TIMER_MODULE_NAME "timer"
-enum cpu_control_type {
- CPU_SET_LAUNCH,
- CPU_SET_FOREGROUND,
- CPU_SET_BACKGROUND
+enum timer_cgroup_type {
+ TIMER_CGROUP_DEFAULT,
+ TIMER_CGROUP_EXCLUDE,
+ TIMER_CGROUP_SERVICE,
+ TIMER_CGROUP_BACKGRD,
};
-struct cpu_data_type {
- enum cpu_control_type control_type;
- pid_t pid;
-};
-
-int cpu_control(enum cpu_control_type type, pid_t pid);
-
-#endif /* __CPU_COMMON_H__ */
+#endif /* __TIMER_SLACK_COMMON_H__ */