diff options
author | Bryan Ward <bcw@cs.unc.edu> | 2012-08-12 16:35:36 -0400 |
---|---|---|
committer | Bryan Ward <bcw@cs.unc.edu> | 2013-04-16 14:34:35 -0400 |
commit | 44123a1a3076503bef7666ffc3fdcb3f8e68e8da (patch) | |
tree | 4d6d41e315f8394f0970f24314cd6a569c56bdf7 /include | |
parent | 30bb245b67c5be41a53203a5cc874e84985c528a (diff) |
DGLock and DGUnlock implementation.
These methods haven't been fully tested, but they compile and pass a few
simple tests.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 3 | ||||
-rw-r--r-- | include/litmus/litmus.h | 1 | ||||
-rw-r--r-- | include/litmus/locking.h | 4 | ||||
-rw-r--r-- | include/litmus/wait.h | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9c990d13ae35..2b094bdaafa3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -96,6 +96,7 @@ struct sched_param { | |||
96 | 96 | ||
97 | #include <litmus/rt_param.h> | 97 | #include <litmus/rt_param.h> |
98 | #include <litmus/preempt.h> | 98 | #include <litmus/preempt.h> |
99 | #include <litmus/fdso.h> | ||
99 | 100 | ||
100 | struct exec_domain; | 101 | struct exec_domain; |
101 | struct futex_pi_state; | 102 | struct futex_pi_state; |
@@ -1538,6 +1539,8 @@ struct task_struct { | |||
1538 | /* references to PI semaphores, etc. */ | 1539 | /* references to PI semaphores, etc. */ |
1539 | struct od_table_entry *od_table; | 1540 | struct od_table_entry *od_table; |
1540 | 1541 | ||
1542 | resource_mask_t resources; | ||
1543 | |||
1541 | #ifdef CONFIG_LATENCYTOP | 1544 | #ifdef CONFIG_LATENCYTOP |
1542 | int latency_record_count; | 1545 | int latency_record_count; |
1543 | struct latency_record latency_record[LT_SAVECOUNT]; | 1546 | struct latency_record latency_record[LT_SAVECOUNT]; |
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index c9206adb3493..9282f3a8f28f 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -27,6 +27,7 @@ static inline int in_list(struct list_head* list) | |||
27 | } | 27 | } |
28 | 28 | ||
29 | struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); | 29 | struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); |
30 | struct task_struct* __waitqueue_peek_first(wait_queue_head_t *wq); | ||
30 | 31 | ||
31 | #define NO_CPU 0xffffffff | 32 | #define NO_CPU 0xffffffff |
32 | 33 | ||
diff --git a/include/litmus/locking.h b/include/litmus/locking.h index 8e501c326b8b..968ba6fa828c 100644 --- a/include/litmus/locking.h +++ b/include/litmus/locking.h | |||
@@ -21,10 +21,6 @@ struct litmus_lock_ops { | |||
21 | int (*open)(struct litmus_lock*, void* __user); | 21 | int (*open)(struct litmus_lock*, void* __user); |
22 | int (*close)(struct litmus_lock*); | 22 | int (*close)(struct litmus_lock*); |
23 | 23 | ||
24 | /* add or remove a resource from control by the dynamic group lock */ | ||
25 | int (*add)(struct litmus_lock*, int); | ||
26 | int (*remove)(struct litmus_lock*, int); | ||
27 | |||
28 | /* Current tries to lock/unlock this lock (mandatory methods). */ | 24 | /* Current tries to lock/unlock this lock (mandatory methods). */ |
29 | int (*lock)(struct litmus_lock*); | 25 | int (*lock)(struct litmus_lock*); |
30 | int (*unlock)(struct litmus_lock*); | 26 | int (*unlock)(struct litmus_lock*); |
diff --git a/include/litmus/wait.h b/include/litmus/wait.h index ce1347c355f8..7e20c0a4a1f4 100644 --- a/include/litmus/wait.h +++ b/include/litmus/wait.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _LITMUS_WAIT_H_ | 2 | #define _LITMUS_WAIT_H_ |
3 | 3 | ||
4 | struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); | 4 | struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); |
5 | struct task_struct* __waitqueue_peek_first(wait_queue_head_t *wq); | ||
5 | 6 | ||
6 | /* wrap regular wait_queue_t head */ | 7 | /* wrap regular wait_queue_t head */ |
7 | struct __prio_wait_queue { | 8 | struct __prio_wait_queue { |