diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-10-27 15:47:22 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-10-27 15:47:22 -0400 |
commit | a4d08351aacc56e79b03c85fc9bbcb03567309fa (patch) | |
tree | 8f15cd5c23a86c72c7376c3da8248e4850629b7f /include/linux/litmus.h | |
parent | 2e4b97e2e722699fe2ce2699714887eac0ff84cc (diff) |
cleanup: tidy up code before release2007.2
This gets rid of quite a few FIXMEs and TODOs, as well as some cruft.
Diffstat (limited to 'include/linux/litmus.h')
-rw-r--r-- | include/linux/litmus.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/include/linux/litmus.h b/include/linux/litmus.h index dc39ecbf7e..259594e922 100644 --- a/include/linux/litmus.h +++ b/include/linux/litmus.h | |||
@@ -35,7 +35,6 @@ typedef enum { | |||
35 | typedef enum { | 35 | typedef enum { |
36 | LITMUS_RESERVED_RANGE = 1024, | 36 | LITMUS_RESERVED_RANGE = 1024, |
37 | 37 | ||
38 | ENABLE_WEIGHT_CHANGE_SIGNAL | ||
39 | } sched_setup_cmd_t; | 38 | } sched_setup_cmd_t; |
40 | 39 | ||
41 | /* Runtime modes */ | 40 | /* Runtime modes */ |
@@ -49,30 +48,14 @@ enum rt_mode_t { | |||
49 | #define PLUGIN_PFAIR "pfair" | 48 | #define PLUGIN_PFAIR "pfair" |
50 | #define PLUGIN_PART_EDF "part_edf" | 49 | #define PLUGIN_PART_EDF "part_edf" |
51 | #define PLUGIN_GLOBAL_EDF "global_edf" | 50 | #define PLUGIN_GLOBAL_EDF "global_edf" |
52 | #define PLUGIN_PFAIR_STAGGER "stagger" | ||
53 | #define PLUGIN_PFAIR_DESYNC "desync" | ||
54 | #define PLUGIN_GLOBAL_EDF_NP "global_edf_np" | 51 | #define PLUGIN_GLOBAL_EDF_NP "global_edf_np" |
55 | #define PLUGIN_EDF_HSB "edf_hsb" | 52 | #define PLUGIN_EDF_HSB "edf_hsb" |
56 | #define PLUGIN_GSN_EDF "gsn_edf" | 53 | #define PLUGIN_GSN_EDF "gsn_edf" |
57 | #define PLUGIN_PSN_EDF "psn_edf" | 54 | #define PLUGIN_PSN_EDF "psn_edf" |
58 | #define PLUGIN_ADAPTIVE "adaptive" | 55 | #define PLUGIN_ADAPTIVE "adaptive" |
59 | 56 | ||
60 | /* Additional clone flags | ||
61 | Indicates that the thread is to be used in | ||
62 | realtime mode, therefore it should not be | ||
63 | woken up in a linux manner, | ||
64 | we just set its state to TASK_STOPPED | ||
65 | It must be prepared and added to the ready queue explicitly | ||
66 | */ | ||
67 | |||
68 | /* Type definition for our quantums */ | ||
69 | typedef unsigned long long quantum_t; | ||
70 | |||
71 | extern spolicy sched_policy; | 57 | extern spolicy sched_policy; |
72 | 58 | ||
73 | extern unsigned long slot_size; | ||
74 | extern unsigned long stagger_offset; | ||
75 | |||
76 | /* RT mode start time */ | 59 | /* RT mode start time */ |
77 | extern volatile unsigned long rt_start_time; | 60 | extern volatile unsigned long rt_start_time; |
78 | 61 | ||
@@ -82,10 +65,6 @@ extern atomic_t rt_mode; | |||
82 | #define get_rt_mode() (atomic_read(&rt_mode)) | 65 | #define get_rt_mode() (atomic_read(&rt_mode)) |
83 | #define set_rt_mode(a) atomic_set(&rt_mode,(a)) | 66 | #define set_rt_mode(a) atomic_set(&rt_mode,(a)) |
84 | 67 | ||
85 | /* CLEANUP: Should be queue_lock, does it really belong here? */ | ||
86 | extern spinlock_t litmus_task_set_lock; | ||
87 | |||
88 | |||
89 | #define TRACE(fmt, args...) \ | 68 | #define TRACE(fmt, args...) \ |
90 | sched_trace_log_message("%d: " fmt, raw_smp_processor_id(), ## args) | 69 | sched_trace_log_message("%d: " fmt, raw_smp_processor_id(), ## args) |
91 | 70 | ||
@@ -99,7 +78,7 @@ extern spinlock_t litmus_task_set_lock; | |||
99 | do { if (cond) TRACE("BUG_ON(%s) at %s:%d " \ | 78 | do { if (cond) TRACE("BUG_ON(%s) at %s:%d " \ |
100 | "called from %p current=%s/%d state=%d " \ | 79 | "called from %p current=%s/%d state=%d " \ |
101 | "flags=%x mode=%d partition=%d cpu=%d rtflags=%d"\ | 80 | "flags=%x mode=%d partition=%d cpu=%d rtflags=%d"\ |
102 | " job=%u knp=%d timeslice=%u\n", \ | 81 | " job=%u knp=%d timeslice=%u\n", \ |
103 | #cond, __FILE__, __LINE__, __builtin_return_address(0), current->comm, \ | 82 | #cond, __FILE__, __LINE__, __builtin_return_address(0), current->comm, \ |
104 | current->pid, current->state, current->flags, get_rt_mode(), \ | 83 | current->pid, current->state, current->flags, get_rt_mode(), \ |
105 | get_partition(current), smp_processor_id(), get_rt_flags(current), \ | 84 | get_partition(current), smp_processor_id(), get_rt_flags(current), \ |