Re: [RFC][PATCH 1/3] locking/qspinlock: Re-order code

2018-10-01 Thread Will Deacon
On Wed, Sep 26, 2018 at 01:01:18PM +0200, Peter Zijlstra wrote: > 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) > --- > kernel/locking/qspinloc

[RFC][PATCH 1/3] locking/qspinlock: Re-order code

2018-09-26 Thread Peter Zijlstra
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) --- kernel/locking/qspinlock.c | 56 + 1 file changed, 27 i