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/locking.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/locking.c')
-rw-r--r-- | litmus/locking.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/locking.c b/litmus/locking.c index 848407b79b4f..ab643475093f 100644 --- a/litmus/locking.c +++ b/litmus/locking.c | |||
@@ -75,6 +75,7 @@ asmlinkage long sys_litmus_lock(int lock_od) | |||
75 | entry = get_entry_for_od(lock_od); | 75 | entry = get_entry_for_od(lock_od); |
76 | if (entry && is_lock(entry)) { | 76 | if (entry && is_lock(entry)) { |
77 | l = get_lock(entry); | 77 | l = get_lock(entry); |
78 | TRACE_CUR("attempts to lock 0x%p\n", l); | ||
78 | err = l->ops->lock(l); | 79 | err = l->ops->lock(l); |
79 | } | 80 | } |
80 | 81 | ||
@@ -96,7 +97,8 @@ asmlinkage long sys_litmus_unlock(int lock_od) | |||
96 | entry = get_entry_for_od(lock_od); | 97 | entry = get_entry_for_od(lock_od); |
97 | if (entry && is_lock(entry)) { | 98 | if (entry && is_lock(entry)) { |
98 | l = get_lock(entry); | 99 | l = get_lock(entry); |
99 | err = l->ops->lock(l); | 100 | TRACE_CUR("attempts to unlock 0x%p\n", l); |
101 | err = l->ops->unlock(l); | ||
100 | } | 102 | } |
101 | 103 | ||
102 | /* Note: task my have been preempted in between! Take this into | 104 | /* Note: task my have been preempted in between! Take this into |