aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn M. Calandrino <jmc@jupiter-cs.cs.unc.edu>2007-04-25 20:59:19 -0400
committerJohn M. Calandrino <jmc@jupiter-cs.cs.unc.edu>2007-04-25 20:59:19 -0400
commit448188f2ca526f609f039e62d4216799fe80d011 (patch)
treebc6495924451ff9262de36c9726d06a33b095074 /include
parentd7718a1d5a09e0f8c698886c85c0c41ee88a51f4 (diff)
Removed incomplete zone-based implementation.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/unistd.h14
-rw-r--r--include/linux/litmus.h3
-rw-r--r--include/linux/rt_param.h15
-rw-r--r--include/linux/wait.h4
4 files changed, 16 insertions, 20 deletions
diff --git a/include/asm-i386/unistd.h b/include/asm-i386/unistd.h
index 382ba6ef49..ac5756dd49 100644
--- a/include/asm-i386/unistd.h
+++ b/include/asm-i386/unistd.h
@@ -346,17 +346,15 @@
346#define __NR_down 336 346#define __NR_down 336
347#define __NR_up 337 347#define __NR_up 337
348#define __NR_sema_free 338 348#define __NR_sema_free 338
349#define __NR_in_blocking_zone 339 349#define __NR_srp_sema_init 339
350#define __NR_wait_for_zone_exit 340 350#define __NR_srp_down 340
351#define __NR_srp_sema_init 341 351#define __NR_srp_up 341
352#define __NR_srp_down 342 352#define __NR_reg_task_srp_sem 342
353#define __NR_srp_up 343 353#define __NR_srp_sema_free 343
354#define __NR_reg_task_srp_sem 344
355#define __NR_srp_sema_free 345
356 354
357#ifdef __KERNEL__ 355#ifdef __KERNEL__
358 356
359#define NR_syscalls 345 357#define NR_syscalls 343
360 358
361#define __ARCH_WANT_IPC_PARSE_VERSION 359#define __ARCH_WANT_IPC_PARSE_VERSION
362#define __ARCH_WANT_OLD_READDIR 360#define __ARCH_WANT_OLD_READDIR
diff --git a/include/linux/litmus.h b/include/linux/litmus.h
index c325164e93..5073a9c7ad 100644
--- a/include/linux/litmus.h
+++ b/include/linux/litmus.h
@@ -51,9 +51,6 @@ typedef enum {
51#define MODE_NON_RT 0 51#define MODE_NON_RT 0
52#define MODE_RT_RUN 1 52#define MODE_RT_RUN 1
53 53
54/* Size of blocking zone, in microseconds. */
55#define ZONE_SIZE 100
56
57/* Plugin boot options, for convenience */ 54/* Plugin boot options, for convenience */
58#define PLUGIN_LINUX "linux" 55#define PLUGIN_LINUX "linux"
59#define PLUGIN_PFAIR "pfair" 56#define PLUGIN_PFAIR "pfair"
diff --git a/include/linux/rt_param.h b/include/linux/rt_param.h
index 6d7ff9ea6e..e9bedd360e 100644
--- a/include/linux/rt_param.h
+++ b/include/linux/rt_param.h
@@ -79,11 +79,6 @@ typedef struct task_rt_param {
79 in_times_t times; 79 in_times_t times;
80 in_times_t backup; 80 in_times_t backup;
81 81
82 /* for zone-based locking: flag indicating whether task
83 * is waiting for the end of the blocking zone
84 */
85 int waiting_to_exit_zone;
86
87 /* is this task under control of litmus? 82 /* is this task under control of litmus?
88 * 83 *
89 * this is necessary because otherwise signal delivery code 84 * this is necessary because otherwise signal delivery code
@@ -97,6 +92,12 @@ typedef struct task_rt_param {
97 * plugin to avoid race conditions. 92 * plugin to avoid race conditions.
98 */ 93 */
99 int scheduled_on; 94 int scheduled_on;
95
96 /* This field can be used by plugins to store where the task
97 * is currently linked. It is the responsibility of the plugin
98 * to avoid race conditions.
99 */
100 int linked_on;
100} task_rt_param_t; 101} task_rt_param_t;
101 102
102/* Possible RT flags */ 103/* Possible RT flags */
@@ -154,9 +155,9 @@ memset(&(t)->rt_param,0, sizeof(struct task_rt_param))
154 (b)->rt_param.times.release)) 155 (b)->rt_param.times.release))
155 156
156#define backup_times(t) do { (t)->rt_param.backup=(t)->rt_param.times; \ 157#define backup_times(t) do { (t)->rt_param.backup=(t)->rt_param.times; \
157 } while(0); 158 } while(0);
158#define restore_times(t) do { (t)->rt_param.times=(t)->rt_param.backup; \ 159#define restore_times(t) do { (t)->rt_param.times=(t)->rt_param.backup; \
159 } while(0); 160 } while(0);
160 161
161/* struct for semaphore with priority inheritance */ 162/* struct for semaphore with priority inheritance */
162struct pi_semaphore { 163struct pi_semaphore {
diff --git a/include/linux/wait.h b/include/linux/wait.h
index 8e05b5a410..c7e96b6b59 100644
--- a/include/linux/wait.h
+++ b/include/linux/wait.h
@@ -348,7 +348,7 @@ do { \
348}) 348})
349 349
350/* 350/*
351 * Must be called with the queuelock in the wait_queue_head_t held. 351 * Must be called with the spinlock in the wait_queue_head_t held.
352 */ 352 */
353static inline void add_wait_queue_exclusive_locked(wait_queue_head_t *q, 353static inline void add_wait_queue_exclusive_locked(wait_queue_head_t *q,
354 wait_queue_t * wait) 354 wait_queue_t * wait)
@@ -358,7 +358,7 @@ static inline void add_wait_queue_exclusive_locked(wait_queue_head_t *q,
358} 358}
359 359
360/* 360/*
361 * Must be called with the queuelock in the wait_queue_head_t held. 361 * Must be called with the spinlock in the wait_queue_head_t held.
362 */ 362 */
363static inline void remove_wait_queue_locked(wait_queue_head_t *q, 363static inline void remove_wait_queue_locked(wait_queue_head_t *q,
364 wait_queue_t * wait) 364 wait_queue_t * wait)