aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-01-10 16:29:31 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-01-10 16:29:31 -0500
commit32849f80c0c4a0c8a1802525bdecc6cd4447d545 (patch)
tree83d88fbb96fe343a21cd507de5710a40bb528f3f /include
parent8d00682ce5ddaedfb62287773d21c727f08fda69 (diff)
remove sem/mutex hacks needed for old klmirqd
Diffstat (limited to 'include')
-rw-r--r--include/linux/mutex.h10
-rw-r--r--include/linux/semaphore.h9
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 */
130typedef int (*side_effect_t)(unsigned long);
131extern 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);
134extern 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);
162extern int __must_check mutex_lock_interruptible(struct mutex *lock); 153extern int __must_check mutex_lock_interruptible(struct mutex *lock);
163extern int __must_check mutex_lock_killable(struct mutex *lock); 154extern 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);
43extern int __must_check down_timeout(struct semaphore *sem, long jiffies); 43extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
44extern void up(struct semaphore *sem); 44extern void up(struct semaphore *sem);
45 45
46extern void __down(struct semaphore *sem);
47extern void __up(struct semaphore *sem);
48
49struct 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 */