]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/locking/semaphore.c
locking, semaphores: Annotate inner lock as raw
authorThomas Gleixner <tglx@linutronix.de>
Wed, 24 Feb 2010 08:50:22 +0000 (09:50 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 13 Sep 2011 09:11:57 +0000 (11:11 +0200)
commit8292c9e15c3b069459794a04f5e2cf0d5665ddc4
tree6dd98e626c2dc5fc38a7838295039226b301ee57
parentee30a7b2fc072f139dac44826860d2c1f422137c
locking, semaphores: Annotate inner lock as raw

There is no reason to have the spin_lock protecting the semaphore
preemptible on -rt. Annotate it as a raw_spinlock.

In mainline this change documents the low level nature of
the lock - otherwise there's no functional difference. Lockdep
and Sparse checking will work as usual.

( On rt this also solves lockdep complaining about the
  rt_mutex.wait_lock being not initialized. )

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/semaphore.h
kernel/semaphore.c