diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-28 16:41:16 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 16:30:39 -0500 |
commit | cc602187d4466374bca031039e145aa1b89aca96 (patch) | |
tree | a92f08cd0ecfd462a694b23f22fedd36ef2aaecf /litmus/fmlp.c | |
parent | a3db326495d4051bddc657d3b226ad4daa7997c4 (diff) |
Litmus core: replace FMLP & SRP system calls with generic syscalls
This renders the FMLP and SRP unfunctional until they are ported to
the new locking API.
Diffstat (limited to 'litmus/fmlp.c')
-rw-r--r-- | litmus/fmlp.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/litmus/fmlp.c b/litmus/fmlp.c index 1e4d544a9230..6e3ddadbc429 100644 --- a/litmus/fmlp.c +++ b/litmus/fmlp.c | |||
@@ -207,62 +207,8 @@ static void do_fmlp_up(struct pi_semaphore* sem) | |||
207 | spin_unlock_irqrestore(&sem->wait.lock, flags); | 207 | spin_unlock_irqrestore(&sem->wait.lock, flags); |
208 | } | 208 | } |
209 | 209 | ||
210 | asmlinkage long sys_fmlp_down(int sem_od) | ||
211 | { | ||
212 | long ret = 0; | ||
213 | struct pi_semaphore * sem; | ||
214 | int suspended = 0; | ||
215 | |||
216 | preempt_disable(); | ||
217 | TS_PI_DOWN_START; | ||
218 | |||
219 | sem = lookup_fmlp_sem(sem_od); | ||
220 | if (sem) | ||
221 | suspended = do_fmlp_down(sem); | ||
222 | else | ||
223 | ret = -EINVAL; | ||
224 | |||
225 | if (!suspended) { | ||
226 | TS_PI_DOWN_END; | ||
227 | preempt_enable(); | ||
228 | } | ||
229 | |||
230 | return ret; | ||
231 | } | ||
232 | |||
233 | asmlinkage long sys_fmlp_up(int sem_od) | ||
234 | { | ||
235 | long ret = 0; | ||
236 | struct pi_semaphore * sem; | ||
237 | |||
238 | preempt_disable(); | ||
239 | TS_PI_UP_START; | ||
240 | |||
241 | sem = lookup_fmlp_sem(sem_od); | ||
242 | if (sem) | ||
243 | do_fmlp_up(sem); | ||
244 | else | ||
245 | ret = -EINVAL; | ||
246 | |||
247 | |||
248 | TS_PI_UP_END; | ||
249 | preempt_enable(); | ||
250 | |||
251 | return ret; | ||
252 | } | ||
253 | |||
254 | #else | 210 | #else |
255 | 211 | ||
256 | struct fdso_ops fmlp_sem_ops = {}; | 212 | struct fdso_ops fmlp_sem_ops = {}; |
257 | 213 | ||
258 | asmlinkage long sys_fmlp_down(int sem_od) | ||
259 | { | ||
260 | return -ENOSYS; | ||
261 | } | ||
262 | |||
263 | asmlinkage long sys_fmlp_up(int sem_od) | ||
264 | { | ||
265 | return -ENOSYS; | ||
266 | } | ||
267 | |||
268 | #endif | 214 | #endif |