kernels/linux-2.4.0/include/asm-s390/semaphore-helper.h
/*
 * These two _must_ execute atomically wrt each other.
 *
 * This is trivially done with load_locked/store_cond,
 * but on the x86 we need an external synchronizer.
 */
These two _must_ execute atomically wrt each other.
This is trivially done with load_locked/store_cond,
but on the x86 we need an external synchronizer.
These two _must_ execute atomically wrt each other . This is trivially done with load_locked / store_cond but on the x86 we need an external synchronizer .
static inline void wake_one_more(struct semaphore * sem)
{
	unsigned long flags;
	spin_lock_irqsave(&semaphore_wake_lock, flags);
	sem->waking++;
	spin_unlock_irqrestore(&semaphore_wake_lock, flags);
}
static inline void wake_one_more ( struct semaphore * sem ) { unsigned long flags ; spin_lock_irqsave ( & semaphore_wake_lock , flags ) ; sem -> waking ++ ; spin_unlock_irqrestore ( & semaphore_wake_lock , flags ) ; }
These two _must_ execute atomically wrt each other.
These two _must_ execute atomically wrt each other .