Generic semaphore implementation

Semaphores are no longer performance-critical, so a generic C
implementation is better for maintainability, debuggability and
extensibility.  Thanks to Peter Zijlstra for fixing the lockdep
warning.  Thanks to Harvey Harrison for pointing out that the
unlikely() was unnecessary.

Signed-off-by: Matthew Wilcox <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
This commit is contained in:
Matthew Wilcox 2008-03-07 21:55:58 -05:00 • committed by Matthew Wilcox
commit 64ac24e738
113 changed files with 314 additions and 7679 deletions

View file

@ -1,6 +1 @@
#ifndef __UM_SEMAPHORE_H
#define __UM_SEMAPHORE_H
#include "asm/arch/semaphore.h"
#endif
#include <linux/semaphore.h>