locking/qspinlock: Add comments
authorPeter Zijlstra <peterz@infradead.org>
Wed, 8 Jun 2016 08:36:53 +0000 (10:36 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 8 Jun 2016 12:44:01 +0000 (14:44 +0200)
commit055ce0fd1b86c204430cbc0887165599d6e15090
tree6491e94068b6f5e0c8e008e0dcec0e832b34cdb0
parent8d53fa19041ae65c484d81d75179b4a577e6d8e4
locking/qspinlock: Add comments

I figured we need to document the spin_is_locked() and
spin_unlock_wait() constraints somwehere.

Ideally 'someone' would rewrite Documentation/atomic_ops.txt and we
could find a place in there. But currently that document is stale to
the point of hardly being useful.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <waiman.long@hpe.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/qspinlock.c