|
@@ -222,8 +222,7 @@ rwsem_down_failed_common(struct rw_semaphore *sem,
|
|
/*
|
|
/*
|
|
* wait for the read lock to be granted
|
|
* wait for the read lock to be granted
|
|
*/
|
|
*/
|
|
-asmregparm struct rw_semaphore __sched *
|
|
|
|
-rwsem_down_read_failed(struct rw_semaphore *sem)
|
|
|
|
|
|
+struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
|
|
{
|
|
{
|
|
return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_READ,
|
|
return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_READ,
|
|
-RWSEM_ACTIVE_READ_BIAS);
|
|
-RWSEM_ACTIVE_READ_BIAS);
|
|
@@ -232,8 +231,7 @@ rwsem_down_read_failed(struct rw_semaphore *sem)
|
|
/*
|
|
/*
|
|
* wait for the write lock to be granted
|
|
* wait for the write lock to be granted
|
|
*/
|
|
*/
|
|
-asmregparm struct rw_semaphore __sched *
|
|
|
|
-rwsem_down_write_failed(struct rw_semaphore *sem)
|
|
|
|
|
|
+struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
|
|
{
|
|
{
|
|
return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_WRITE,
|
|
return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_WRITE,
|
|
-RWSEM_ACTIVE_WRITE_BIAS);
|
|
-RWSEM_ACTIVE_WRITE_BIAS);
|
|
@@ -243,7 +241,7 @@ rwsem_down_write_failed(struct rw_semaphore *sem)
|
|
* handle waking up a waiter on the semaphore
|
|
* handle waking up a waiter on the semaphore
|
|
* - up_read/up_write has decremented the active part of count if we come here
|
|
* - up_read/up_write has decremented the active part of count if we come here
|
|
*/
|
|
*/
|
|
-asmregparm struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem)
|
|
|
|
|
|
+struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
@@ -263,7 +261,7 @@ asmregparm struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem)
|
|
* - caller incremented waiting part of count and discovered it still negative
|
|
* - caller incremented waiting part of count and discovered it still negative
|
|
* - just wake up any readers at the front of the queue
|
|
* - just wake up any readers at the front of the queue
|
|
*/
|
|
*/
|
|
-asmregparm struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem)
|
|
|
|
|
|
+struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|