[PATCH] add sem_is_read/write_locked()
Add sem_is_read/write_locked functions to the read/write semaphores, along the same lines of the *_is_locked spinlock functions. The swap token tuning patch uses sem_is_read_locked; sem_is_write_locked is added for completeness. Signed-off-by:Rik van Riel <riel@redhat.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- include/asm-alpha/rwsem.h 5 additions, 0 deletionsinclude/asm-alpha/rwsem.h
- include/asm-i386/rwsem.h 5 additions, 0 deletionsinclude/asm-i386/rwsem.h
- include/asm-ia64/rwsem.h 5 additions, 0 deletionsinclude/asm-ia64/rwsem.h
- include/asm-ppc/rwsem.h 5 additions, 0 deletionsinclude/asm-ppc/rwsem.h
- include/asm-ppc64/rwsem.h 5 additions, 0 deletionsinclude/asm-ppc64/rwsem.h
- include/asm-s390/rwsem.h 5 additions, 0 deletionsinclude/asm-s390/rwsem.h
- include/asm-sh/rwsem.h 5 additions, 0 deletionsinclude/asm-sh/rwsem.h
- include/asm-sparc64/rwsem.h 5 additions, 0 deletionsinclude/asm-sparc64/rwsem.h
- include/asm-x86_64/rwsem.h 5 additions, 0 deletionsinclude/asm-x86_64/rwsem.h
- include/linux/rwsem-spinlock.h 5 additions, 0 deletionsinclude/linux/rwsem-spinlock.h
Loading
Please register or sign in to comment