aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rwsem-spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rwsem-spinlock.c')
-rw-r--r--lib/rwsem-spinlock.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/rwsem-spinlock.c b/lib/rwsem-spinlock.c
index c4cfd6c0342f..9df3ca56db11 100644
--- a/lib/rwsem-spinlock.c
+++ b/lib/rwsem-spinlock.c
@@ -125,7 +125,7 @@ __rwsem_wake_one_writer(struct rw_semaphore *sem)
125/* 125/*
126 * get a read lock on the semaphore 126 * get a read lock on the semaphore
127 */ 127 */
128void fastcall __sched __down_read(struct rw_semaphore *sem) 128void __sched __down_read(struct rw_semaphore *sem)
129{ 129{
130 struct rwsem_waiter waiter; 130 struct rwsem_waiter waiter;
131 struct task_struct *tsk; 131 struct task_struct *tsk;
@@ -168,7 +168,7 @@ void fastcall __sched __down_read(struct rw_semaphore *sem)
168/* 168/*
169 * trylock for reading -- returns 1 if successful, 0 if contention 169 * trylock for reading -- returns 1 if successful, 0 if contention
170 */ 170 */
171int fastcall __down_read_trylock(struct rw_semaphore *sem) 171int __down_read_trylock(struct rw_semaphore *sem)
172{ 172{
173 unsigned long flags; 173 unsigned long flags;
174 int ret = 0; 174 int ret = 0;
@@ -191,7 +191,7 @@ int fastcall __down_read_trylock(struct rw_semaphore *sem)
191 * get a write lock on the semaphore 191 * get a write lock on the semaphore
192 * - we increment the waiting count anyway to indicate an exclusive lock 192 * - we increment the waiting count anyway to indicate an exclusive lock
193 */ 193 */
194void fastcall __sched __down_write_nested(struct rw_semaphore *sem, int subclass) 194void __sched __down_write_nested(struct rw_semaphore *sem, int subclass)
195{ 195{
196 struct rwsem_waiter waiter; 196 struct rwsem_waiter waiter;
197 struct task_struct *tsk; 197 struct task_struct *tsk;
@@ -231,7 +231,7 @@ void fastcall __sched __down_write_nested(struct rw_semaphore *sem, int subclass
231 ; 231 ;
232} 232}
233 233
234void fastcall __sched __down_write(struct rw_semaphore *sem) 234void __sched __down_write(struct rw_semaphore *sem)
235{ 235{
236 __down_write_nested(sem, 0); 236 __down_write_nested(sem, 0);
237} 237}
@@ -239,7 +239,7 @@ void fastcall __sched __down_write(struct rw_semaphore *sem)
239/* 239/*
240 * trylock for writing -- returns 1 if successful, 0 if contention 240 * trylock for writing -- returns 1 if successful, 0 if contention
241 */ 241 */
242int fastcall __down_write_trylock(struct rw_semaphore *sem) 242int __down_write_trylock(struct rw_semaphore *sem)
243{ 243{
244 unsigned long flags; 244 unsigned long flags;
245 int ret = 0; 245 int ret = 0;
@@ -260,7 +260,7 @@ int fastcall __down_write_trylock(struct rw_semaphore *sem)
260/* 260/*
261 * release a read lock on the semaphore 261 * release a read lock on the semaphore
262 */ 262 */
263void fastcall __up_read(struct rw_semaphore *sem) 263void __up_read(struct rw_semaphore *sem)
264{ 264{
265 unsigned long flags; 265 unsigned long flags;
266 266
@@ -275,7 +275,7 @@ void fastcall __up_read(struct rw_semaphore *sem)
275/* 275/*
276 * release a write lock on the semaphore 276 * release a write lock on the semaphore
277 */ 277 */
278void fastcall __up_write(struct rw_semaphore *sem) 278void __up_write(struct rw_semaphore *sem)
279{ 279{
280 unsigned long flags; 280 unsigned long flags;
281 281
@@ -292,7 +292,7 @@ void fastcall __up_write(struct rw_semaphore *sem)
292 * downgrade a write lock into a read lock 292 * downgrade a write lock into a read lock
293 * - just wake up any readers at the front of the queue 293 * - just wake up any readers at the front of the queue
294 */ 294 */
295void fastcall __downgrade_write(struct rw_semaphore *sem) 295void __downgrade_write(struct rw_semaphore *sem)
296{ 296{
297 unsigned long flags; 297 unsigned long flags;
298 298