aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/litmus.h23
-rw-r--r--include/linux/pfair_math.h3
-rw-r--r--include/linux/sched_plugin.h8
3 files changed, 4 insertions, 30 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 {
35typedef enum { 35typedef 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 */
69typedef unsigned long long quantum_t;
70
71extern spolicy sched_policy; 57extern spolicy sched_policy;
72 58
73extern unsigned long slot_size;
74extern unsigned long stagger_offset;
75
76/* RT mode start time */ 59/* RT mode start time */
77extern volatile unsigned long rt_start_time; 60extern 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? */
86extern 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), \
diff --git a/include/linux/pfair_math.h b/include/linux/pfair_math.h
index dab1778f0b..b2a14e4c54 100644
--- a/include/linux/pfair_math.h
+++ b/include/linux/pfair_math.h
@@ -7,6 +7,9 @@
7#include <linux/litmus.h> 7#include <linux/litmus.h>
8#include <linux/sched.h> 8#include <linux/sched.h>
9 9
10/* Type definition for our quantums */
11typedef unsigned long long quantum_t;
12
10/* 13/*
11* This file defines mathematical functions "ceiling", "floor", 14* This file defines mathematical functions "ceiling", "floor",
12* and PFAIR specific functions for computing the release and 15* and PFAIR specific functions for computing the release and
diff --git a/include/linux/sched_plugin.h b/include/linux/sched_plugin.h
index fa0716f0eb..1ea8178b25 100644
--- a/include/linux/sched_plugin.h
+++ b/include/linux/sched_plugin.h
@@ -33,13 +33,6 @@ struct pi_semaphore {
33 */ 33 */
34typedef void runqueue_t; 34typedef void runqueue_t;
35 35
36/********************* real-time callbacks ********************/
37
38/* Special plugin shutdown hook that clear plugin data structures
39 Currently is not supported
40*/
41typedef void (*plugin_shutdown_hook_t) (void);
42
43 36
44/********************* scheduler invocation ******************/ 37/********************* scheduler invocation ******************/
45 38
@@ -105,7 +98,6 @@ struct sched_plugin {
105 int ready_to_use; 98 int ready_to_use;
106 99
107 /* management interface */ 100 /* management interface */
108 plugin_shutdown_hook_t shutdown_hook; /*currently unsupported */
109 mode_change_t mode_change; 101 mode_change_t mode_change;
110 102
111 /* scheduler invocation */ 103 /* scheduler invocation */