locking/qspinlock: Re-order code
authorPeter Zijlstra <peterz@infradead.org>
Wed, 26 Sep 2018 11:01:18 +0000 (13:01 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Oct 2018 15:33:53 +0000 (17:33 +0200)
commit53bf57fab7321fb42b703056a4c80fc9d986d170
tree9235fe433960327c1da49e63e796e992b196173f
parentec57e2f0acb01710cd465bc04495ed03a9e0fea1
locking/qspinlock: Re-order code

Flip the branch condition after atomic_fetch_or_acquire(_Q_PENDING_VAL)
such that we loose the indent. This also result in a more natural code
flow IMO.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: andrea.parri@amarulasolutions.com
Cc: longman@redhat.com
Link: https://lkml.kernel.org/r/20181003130257.156322446@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/qspinlock.c