diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-10 16:29:31 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-10 16:29:31 -0500 |
commit | 32849f80c0c4a0c8a1802525bdecc6cd4447d545 (patch) | |
tree | 83d88fbb96fe343a21cd507de5710a40bb528f3f /include | |
parent | 8d00682ce5ddaedfb62287773d21c727f08fda69 (diff) |
remove sem/mutex hacks needed for old klmirqd
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mutex.h | 10 | ||||
-rw-r--r-- | include/linux/semaphore.h | 9 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/mutex.h b/include/linux/mutex.h index cb47debbf24d..a940fe435aca 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h | |||
@@ -126,15 +126,6 @@ static inline int mutex_is_locked(struct mutex *lock) | |||
126 | return atomic_read(&lock->count) != 1; | 126 | return atomic_read(&lock->count) != 1; |
127 | } | 127 | } |
128 | 128 | ||
129 | /* return non-zero to abort. only pre-side-effects may abort */ | ||
130 | typedef int (*side_effect_t)(unsigned long); | ||
131 | extern void mutex_lock_sfx(struct mutex *lock, | ||
132 | side_effect_t pre, unsigned long pre_arg, | ||
133 | side_effect_t post, unsigned long post_arg); | ||
134 | extern void mutex_unlock_sfx(struct mutex *lock, | ||
135 | side_effect_t pre, unsigned long pre_arg, | ||
136 | side_effect_t post, unsigned long post_arg); | ||
137 | |||
138 | /* | 129 | /* |
139 | * See kernel/mutex.c for detailed documentation of these APIs. | 130 | * See kernel/mutex.c for detailed documentation of these APIs. |
140 | * Also see Documentation/mutex-design.txt. | 131 | * Also see Documentation/mutex-design.txt. |
@@ -162,7 +153,6 @@ extern void mutex_lock(struct mutex *lock); | |||
162 | extern int __must_check mutex_lock_interruptible(struct mutex *lock); | 153 | extern int __must_check mutex_lock_interruptible(struct mutex *lock); |
163 | extern int __must_check mutex_lock_killable(struct mutex *lock); | 154 | extern int __must_check mutex_lock_killable(struct mutex *lock); |
164 | 155 | ||
165 | |||
166 | # define mutex_lock_nested(lock, subclass) mutex_lock(lock) | 156 | # define mutex_lock_nested(lock, subclass) mutex_lock(lock) |
167 | # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) | 157 | # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) |
168 | # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) | 158 | # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) |
diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h index c83fc2b65f01..39fa04966aa8 100644 --- a/include/linux/semaphore.h +++ b/include/linux/semaphore.h | |||
@@ -43,13 +43,4 @@ extern int __must_check down_trylock(struct semaphore *sem); | |||
43 | extern int __must_check down_timeout(struct semaphore *sem, long jiffies); | 43 | extern int __must_check down_timeout(struct semaphore *sem, long jiffies); |
44 | extern void up(struct semaphore *sem); | 44 | extern void up(struct semaphore *sem); |
45 | 45 | ||
46 | extern void __down(struct semaphore *sem); | ||
47 | extern void __up(struct semaphore *sem); | ||
48 | |||
49 | struct semaphore_waiter { | ||
50 | struct list_head list; | ||
51 | struct task_struct *task; | ||
52 | int up; | ||
53 | }; | ||
54 | |||
55 | #endif /* __LINUX_SEMAPHORE_H */ | 46 | #endif /* __LINUX_SEMAPHORE_H */ |