aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/semaphore.h
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox <matthew@wil.cx> 2008-03-07 21:55:58 -0500
committerGravatar Matthew Wilcox <willy@linux.intel.com> 2008-04-17 10:42:34 -0400
commit64ac24e738823161693bf791f87adc802cf529ff (patch)
tree19c0b0cf314d4394ca580c05b86cdf874ce0a167 /include/asm-x86/semaphore.h
parentAdd semaphore.h to kernel_lock.c (diff)
downloadlinux-64ac24e738823161693bf791f87adc802cf529ff.tar.gz
linux-64ac24e738823161693bf791f87adc802cf529ff.tar.bz2
linux-64ac24e738823161693bf791f87adc802cf529ff.zip
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 <willy@linux.intel.com> Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/semaphore.h')
-rw-r--r--include/asm-x86/semaphore.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/asm-x86/semaphore.h b/include/asm-x86/semaphore.h
index 572c0b67a6b0..d9b2034ed1d2 100644
--- a/include/asm-x86/semaphore.h
+++ b/include/asm-x86/semaphore.h
@@ -1,5 +1 @@
-#ifdef CONFIG_X86_32
-# include "semaphore_32.h"
-#else
-# include "semaphore_64.h"
-#endif
+#include <linux/semaphore.h>