aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus')
-rw-r--r--include/litmus/sched_plugin.h17
-rw-r--r--include/litmus/unistd_32.h18
-rw-r--r--include/litmus/unistd_64.h24
3 files changed, 18 insertions, 41 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index 27b719aebed9..8a3ed6d19a3c 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -105,23 +105,6 @@ int register_sched_plugin(struct sched_plugin* plugin);
105struct sched_plugin* find_sched_plugin(const char* name); 105struct sched_plugin* find_sched_plugin(const char* name);
106int print_sched_plugins(char* buf, int max); 106int print_sched_plugins(char* buf, int max);
107 107
108static inline int srp_active(void)
109{
110#ifdef CONFIG_SRP
111 return litmus->srp_active;
112#else
113 return 0;
114#endif
115}
116static inline int fmlp_active(void)
117{
118#ifdef CONFIG_FMLP
119 return litmus->fmlp_active;
120#else
121 return 0;
122#endif
123}
124
125extern struct sched_plugin linux_sched_plugin; 108extern struct sched_plugin linux_sched_plugin;
126 109
127#endif 110#endif
diff --git a/include/litmus/unistd_32.h b/include/litmus/unistd_32.h
index dbddc6523f8e..94264c27d9ac 100644
--- a/include/litmus/unistd_32.h
+++ b/include/litmus/unistd_32.h
@@ -10,14 +10,12 @@
10#define __NR_complete_job __LSC(2) 10#define __NR_complete_job __LSC(2)
11#define __NR_od_open __LSC(3) 11#define __NR_od_open __LSC(3)
12#define __NR_od_close __LSC(4) 12#define __NR_od_close __LSC(4)
13#define __NR_fmlp_down __LSC(5) 13#define __NR_litmus_lock __LSC(5)
14#define __NR_fmlp_up __LSC(6) 14#define __NR_litmus_unlock __LSC(6)
15#define __NR_srp_down __LSC(7) 15#define __NR_query_job_no __LSC(7)
16#define __NR_srp_up __LSC(8) 16#define __NR_wait_for_job_release __LSC(8)
17#define __NR_query_job_no __LSC(9) 17#define __NR_wait_for_ts_release __LSC(9)
18#define __NR_wait_for_job_release __LSC(10) 18#define __NR_release_ts __LSC(10)
19#define __NR_wait_for_ts_release __LSC(11) 19#define __NR_null_call __LSC(11)
20#define __NR_release_ts __LSC(12)
21#define __NR_null_call __LSC(13)
22 20
23#define NR_litmus_syscalls 14 21#define NR_litmus_syscalls 12
diff --git a/include/litmus/unistd_64.h b/include/litmus/unistd_64.h
index f0618e75348d..d5ced0d2642c 100644
--- a/include/litmus/unistd_64.h
+++ b/include/litmus/unistd_64.h
@@ -15,23 +15,19 @@ __SYSCALL(__NR_complete_job, sys_complete_job)
15__SYSCALL(__NR_od_open, sys_od_open) 15__SYSCALL(__NR_od_open, sys_od_open)
16#define __NR_od_close __LSC(4) 16#define __NR_od_close __LSC(4)
17__SYSCALL(__NR_od_close, sys_od_close) 17__SYSCALL(__NR_od_close, sys_od_close)
18#define __NR_fmlp_down __LSC(5) 18#define __NR_litmus_lock __LSC(5)
19__SYSCALL(__NR_fmlp_down, sys_fmlp_down) 19__SYSCALL(__NR_litmus_lock, sys_litmus_lock)
20#define __NR_fmlp_up __LSC(6) 20#define __NR_litmus_unlock __LSC(6)
21__SYSCALL(__NR_fmlp_up, sys_fmlp_up) 21__SYSCALL(__NR_litmus_unlock, sys_litmus_unlock)
22#define __NR_srp_down __LSC(7) 22#define __NR_query_job_no __LSC(7)
23__SYSCALL(__NR_srp_down, sys_srp_down)
24#define __NR_srp_up __LSC(8)
25__SYSCALL(__NR_srp_up, sys_srp_up)
26#define __NR_query_job_no __LSC(9)
27__SYSCALL(__NR_query_job_no, sys_query_job_no) 23__SYSCALL(__NR_query_job_no, sys_query_job_no)
28#define __NR_wait_for_job_release __LSC(10) 24#define __NR_wait_for_job_release __LSC(8)
29__SYSCALL(__NR_wait_for_job_release, sys_wait_for_job_release) 25__SYSCALL(__NR_wait_for_job_release, sys_wait_for_job_release)
30#define __NR_wait_for_ts_release __LSC(11) 26#define __NR_wait_for_ts_release __LSC(9)
31__SYSCALL(__NR_wait_for_ts_release, sys_wait_for_ts_release) 27__SYSCALL(__NR_wait_for_ts_release, sys_wait_for_ts_release)
32#define __NR_release_ts __LSC(12) 28#define __NR_release_ts __LSC(10)
33__SYSCALL(__NR_release_ts, sys_release_ts) 29__SYSCALL(__NR_release_ts, sys_release_ts)
34#define __NR_null_call __LSC(13) 30#define __NR_null_call __LSC(11)
35__SYSCALL(__NR_null_call, sys_null_call) 31__SYSCALL(__NR_null_call, sys_null_call)
36 32
37#define NR_litmus_syscalls 14 33#define NR_litmus_syscalls 12