kernels/linux-2.4.0/include/asm-s390/semaphore.h
/* releasing the writer is easy -- just release it and
 * wake up any sleepers.
 */
releasing the writer is easy -- just release it and
wake up any sleepers.
releasing the writer is easy -- just release it and wake up any sleepers .
extern inline void up_write(struct rw_semaphore *sem)
{
	int count;
	count = atomic_add_return(RW_LOCK_BIAS, &sem->count);
	if (count >= 0 && count < RW_LOCK_BIAS)
		__rwsem_wake(count, sem);
}
extern inline void up_write ( struct rw_semaphore * sem ) { int count ; count = atomic_add_return ( RW_LOCK_BIAS , & sem -> count ) ; if ( count >= 0 && count < RW_LOCK_BIAS ) __rwsem_wake ( count , sem ) ; }
releasing the writer is easy -- just release it and
 wake up any sleepers.
releasing the writer is easy -- just release it and wake up any sleepers .