summaryrefslogtreecommitdiff
path: root/arch/arc/mm/extable.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-07-21 18:46:53 +0300
committerVineet Gupta <vgupta@synopsys.com>2015-08-04 06:56:35 +0300
commitb89aa12c177477e34caa722818536fb5d0bffd76 (patch)
tree66f2d999f9f0a140790fc62f50504e2ce659bd01 /arch/arc/mm/extable.c
parente78fdfef84be13a5c2b8276e12203cdf24778596 (diff)
downloadlinux-b89aa12c177477e34caa722818536fb5d0bffd76.tar.xz
ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cycle
The previous commit for delayed retry of SCOND needs some fine tuning for spin locks. The backoff from delayed retry in conjunction with spin looping of lock itself can potentially cause the delay counter to reach high values. So to provide fairness to any lock operation, after a lock "seems" available (i.e. just before first SCOND try0, reset the delay counter back to starting value of 1 Essentially reset delay to 1 for a new spin-wait-loop-acquire cycle. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/mm/extable.c')
0 files changed, 0 insertions, 0 deletions