Generic semaphore implementation
authorMatthew Wilcox <matthew@wil.cx>
Sat, 8 Mar 2008 02:55:58 +0000 (21:55 -0500)
committerMatthew Wilcox <willy@linux.intel.com>
Thu, 17 Apr 2008 14:42:34 +0000 (10:42 -0400)
commit64ac24e738823161693bf791f87adc802cf529ff
tree19c0b0cf314d4394ca580c05b86cdf874ce0a167
parente48b3deee475134585eed03e7afebe4bf9e0dba9
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>
113 files changed:
arch/alpha/kernel/Makefile
arch/alpha/kernel/alpha_ksyms.c
arch/alpha/kernel/semaphore.c [deleted file]
arch/arm/kernel/Makefile
arch/arm/kernel/semaphore.c [deleted file]
arch/avr32/kernel/Makefile
arch/avr32/kernel/semaphore.c [deleted file]
arch/blackfin/Kconfig
arch/blackfin/kernel/bfin_ksyms.c
arch/cris/kernel/Makefile
arch/cris/kernel/crisksyms.c
arch/cris/kernel/semaphore.c [deleted file]
arch/frv/kernel/Makefile
arch/frv/kernel/frv_ksyms.c
arch/frv/kernel/semaphore.c [deleted file]
arch/h8300/kernel/Makefile
arch/h8300/kernel/h8300_ksyms.c
arch/h8300/kernel/semaphore.c [deleted file]
arch/ia64/kernel/Makefile
arch/ia64/kernel/ia64_ksyms.c
arch/ia64/kernel/semaphore.c [deleted file]
arch/m32r/kernel/Makefile
arch/m32r/kernel/m32r_ksyms.c
arch/m32r/kernel/semaphore.c [deleted file]
arch/m68k/kernel/Makefile
arch/m68k/kernel/m68k_ksyms.c
arch/m68k/kernel/semaphore.c [deleted file]
arch/m68k/lib/Makefile
arch/m68k/lib/semaphore.S [deleted file]
arch/m68knommu/kernel/Makefile
arch/m68knommu/kernel/m68k_ksyms.c
arch/m68knommu/kernel/semaphore.c [deleted file]
arch/m68knommu/lib/Makefile
arch/m68knommu/lib/semaphore.S [deleted file]
arch/mips/kernel/Makefile
arch/mips/kernel/semaphore.c [deleted file]
arch/mn10300/kernel/Makefile
arch/mn10300/kernel/semaphore.c [deleted file]
arch/parisc/kernel/Makefile
arch/parisc/kernel/parisc_ksyms.c
arch/parisc/kernel/semaphore.c [deleted file]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kernel/semaphore.c [deleted file]
arch/ppc/kernel/semaphore.c [deleted file]
arch/s390/kernel/Makefile
arch/s390/kernel/s390_ksyms.c
arch/s390/kernel/semaphore.c [deleted file]
arch/sh/kernel/Makefile_32
arch/sh/kernel/Makefile_64
arch/sh/kernel/semaphore.c [deleted file]
arch/sh/kernel/sh_ksyms_32.c
arch/sh/kernel/sh_ksyms_64.c
arch/sparc/kernel/Makefile
arch/sparc/kernel/semaphore.c [deleted file]
arch/sparc/kernel/sparc_ksyms.c
arch/sparc64/kernel/Makefile
arch/sparc64/kernel/semaphore.c [deleted file]
arch/sparc64/kernel/sparc64_ksyms.c
arch/um/Kconfig.i386
arch/um/Kconfig.x86_64
arch/um/sys-i386/ksyms.c
arch/um/sys-ppc/Makefile
arch/um/sys-x86_64/ksyms.c
arch/v850/kernel/Makefile
arch/v850/kernel/semaphore.c [deleted file]
arch/v850/kernel/v850_ksyms.c
arch/x86/Kconfig
arch/x86/kernel/i386_ksyms_32.c
arch/x86/kernel/x8664_ksyms_64.c
arch/x86/lib/semaphore_32.S
arch/x86/lib/thunk_64.S
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/semaphore.c [deleted file]
arch/xtensa/kernel/xtensa_ksyms.c
include/asm-alpha/semaphore.h
include/asm-arm/semaphore-helper.h [deleted file]
include/asm-arm/semaphore.h
include/asm-avr32/semaphore.h
include/asm-blackfin/semaphore-helper.h [deleted file]
include/asm-blackfin/semaphore.h
include/asm-cris/semaphore-helper.h [deleted file]
include/asm-cris/semaphore.h
include/asm-frv/semaphore.h
include/asm-h8300/semaphore-helper.h [deleted file]
include/asm-h8300/semaphore.h
include/asm-ia64/semaphore.h
include/asm-m32r/semaphore.h
include/asm-m68k/semaphore-helper.h [deleted file]
include/asm-m68k/semaphore.h
include/asm-m68knommu/semaphore-helper.h [deleted file]
include/asm-m68knommu/semaphore.h
include/asm-mips/semaphore.h
include/asm-mn10300/semaphore.h
include/asm-parisc/semaphore-helper.h [deleted file]
include/asm-parisc/semaphore.h
include/asm-powerpc/semaphore.h
include/asm-s390/semaphore.h
include/asm-sh/semaphore-helper.h [deleted file]
include/asm-sh/semaphore.h
include/asm-sparc/semaphore.h
include/asm-sparc64/semaphore.h
include/asm-um/semaphore.h
include/asm-v850/semaphore.h
include/asm-x86/semaphore.h
include/asm-x86/semaphore_32.h [deleted file]
include/asm-x86/semaphore_64.h [deleted file]
include/asm-xtensa/semaphore.h
include/linux/semaphore.h [new file with mode: 0644]
kernel/Makefile
kernel/semaphore.c [new file with mode: 0644]
lib/Makefile
lib/semaphore-sleepers.c [deleted file]