locking: Clean up pvqspinlock warning
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Jul 2015 10:13:43 +0000 (12:13 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 08:57:08 +0000 (10:57 +0200)
commit0b792bf519e68108d577fcec815ab50913787012
tree6c7a91eb4963eee386068b5f1afbe66fe4dbcfbe
parent3a7651e683701dbb4c7d02e20661c923fa4c6901
locking: Clean up pvqspinlock warning

 - Rename the on-stack variable to match the datastructure variable,

 - place the cmpxchg back under the comment that explains it,

 - clean up the WARN() statement to avoid superfluous conditionals
   and line-breaks.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
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@hp.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/qspinlock_paravirt.h