diff options
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r-- | litmus/sched_plugin.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c index 00a1900d6457..77ae3eeb3966 100644 --- a/litmus/sched_plugin.c +++ b/litmus/sched_plugin.c | |||
@@ -120,6 +120,17 @@ static long litmus_dummy_allocate_lock(struct litmus_lock **lock, int type, | |||
120 | 120 | ||
121 | #endif | 121 | #endif |
122 | 122 | ||
123 | #ifdef CONFIG_LITMUS_DGL_SUPPORT | ||
124 | |||
125 | static raw_spinlock_t* litmus_dummy_get_dgl_spinlock(struct task_struct *t) | ||
126 | { | ||
127 | BUG(); | ||
128 | return NULL; | ||
129 | } | ||
130 | |||
131 | #endif | ||
132 | |||
133 | |||
123 | 134 | ||
124 | /* The default scheduler plugin. It doesn't do anything and lets Linux do its | 135 | /* The default scheduler plugin. It doesn't do anything and lets Linux do its |
125 | * job. | 136 | * job. |
@@ -139,6 +150,9 @@ struct sched_plugin linux_sched_plugin = { | |||
139 | #ifdef CONFIG_LITMUS_LOCKING | 150 | #ifdef CONFIG_LITMUS_LOCKING |
140 | .allocate_lock = litmus_dummy_allocate_lock, | 151 | .allocate_lock = litmus_dummy_allocate_lock, |
141 | #endif | 152 | #endif |
153 | #ifdef CONFIG_LITMUS_DGL_SUPPORT | ||
154 | .get_dgl_spinlock = litmus_dummy_get_dgl_spinlock, | ||
155 | #endif | ||
142 | .admit_task = litmus_dummy_admit_task | 156 | .admit_task = litmus_dummy_admit_task |
143 | }; | 157 | }; |
144 | 158 | ||
@@ -177,6 +191,9 @@ int register_sched_plugin(struct sched_plugin* plugin) | |||
177 | #ifdef CONFIG_LITMUS_LOCKING | 191 | #ifdef CONFIG_LITMUS_LOCKING |
178 | CHECK(allocate_lock); | 192 | CHECK(allocate_lock); |
179 | #endif | 193 | #endif |
194 | #ifdef CONFIG_LITMUS_DGL_SUPPORT | ||
195 | CHECK(get_dgl_spinlock); | ||
196 | #endif | ||
180 | CHECK(admit_task); | 197 | CHECK(admit_task); |
181 | 198 | ||
182 | if (!plugin->release_at) | 199 | if (!plugin->release_at) |