aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-10-17 19:02:28 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-10-17 19:02:28 -0400
commit1c6236f925abbae779c87903bce32b04401ad027 (patch)
tree52bcc30e245121eb37cc299818e6d464d8937468 /include
parente7869361400ef89ae169c1acf17296b7ada47cc8 (diff)
remove old cruft and add ADAPTIVE, block USR1
Diffstat (limited to 'include')
-rw-r--r--include/litmus.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/litmus.h b/include/litmus.h
index 01503aa..c2ca626 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -14,16 +14,14 @@ typedef int (*rt_setup_fn_t)(int pid, void* arg);
14typedef enum { 14typedef enum {
15 SCHED_LINUX = 0, 15 SCHED_LINUX = 0,
16 SCHED_PFAIR = 1, 16 SCHED_PFAIR = 1,
17 SCHED_PFAIR_STAGGER = 2,
18 SCHED_PART_EDF = 3, 17 SCHED_PART_EDF = 3,
19 SCHED_PART_EEVDF = 4,
20 SCHED_GLOBAL_EDF = 5, 18 SCHED_GLOBAL_EDF = 5,
21 SCHED_PFAIR_DESYNC = 6, 19 SCHED_PFAIR_DESYNC = 6,
22 SCHED_GLOBAL_EDF_NP = 7, 20 SCHED_GLOBAL_EDF_NP = 7,
23 SCHED_CUSTOM = 8,
24 SCHED_EDF_HSB = 9, 21 SCHED_EDF_HSB = 9,
25 SCHED_GSN_EDF = 10, 22 SCHED_GSN_EDF = 10,
26 SCHED_PSN_EDF = 11 23 SCHED_PSN_EDF = 11,
24 SCHED_ADAPTIVE = 12,
27} spolicy; 25} spolicy;
28 26
29/* different types of clients */ 27/* different types of clients */
@@ -55,6 +53,7 @@ typedef int srp_sema_id; /* ID of an SRP "semaphore" in the Linux kernel */
55 53
56typedef int pid_t; /* PID of a task */ 54typedef int pid_t; /* PID of a task */
57 55
56/* X */
58#define set_param(t,p,e) do{\ 57#define set_param(t,p,e) do{\
59 (t).is_realtime=1;\ 58 (t).is_realtime=1;\
60 (t).exec_cost=(e);\ 59 (t).exec_cost=(e);\
@@ -65,24 +64,26 @@ typedef int pid_t; /* PID of a task */
65#define MODE_NON_RT 0 64#define MODE_NON_RT 0
66#define MODE_RT_RUN 1 65#define MODE_RT_RUN 1
67 66
68spolicy sched_setpolicy(spolicy policy);
69spolicy sched_getpolicy(void); 67spolicy sched_getpolicy(void);
70int set_rt_mode(int mode); 68int set_rt_mode(int mode);
71int set_rt_task_param(pid_t pid, rt_param_t* param); 69int set_rt_task_param(pid_t pid, rt_param_t* param);
72int get_rt_task_param(pid_t pid, rt_param_t* param); 70int get_rt_task_param(pid_t pid, rt_param_t* param);
73int prepare_rt_task(pid_t pid); 71int prepare_rt_task(pid_t pid);
74int tear_down_task(pid_t pid, int sig);
75int reset_stat(void);
76int sleep_next_period(void); 72int sleep_next_period(void);
73
74
75enum {
76 LITMUS_RESERVED_RANGE = 1024,
77} SCHED_SETUP_CMD;
78
77int scheduler_setup(int cmd, void* param); 79int scheduler_setup(int cmd, void* param);
80
81
82
78int pi_sema_init(void); 83int pi_sema_init(void);
79int pi_down(pi_sema_id sem_id); 84int pi_down(pi_sema_id sem_id);
80int pi_up(pi_sema_id sem_id); 85int pi_up(pi_sema_id sem_id);
81int pi_sema_free(pi_sema_id sem_id); 86int pi_sema_free(pi_sema_id sem_id);
82int sema_init(void);
83int down(sema_id sem_id);
84int up(sema_id sem_id);
85int sema_free(sema_id sem_id);
86int srp_sema_init(void); 87int srp_sema_init(void);
87int srp_down(srp_sema_id sem_id); 88int srp_down(srp_sema_id sem_id);
88int srp_up(srp_sema_id sem_id); 89int srp_up(srp_sema_id sem_id);