summaryrefslogtreecommitdiffstats
path: root/arch/arc/plat-sim
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-07-21 17:46:53 +0200
committerVineet Gupta <vgupta@synopsys.com>2015-08-04 05:56:35 +0200
commitb89aa12c177477e34caa722818536fb5d0bffd76 (patch)
tree66f2d999f9f0a140790fc62f50504e2ce659bd01 /arch/arc/plat-sim
parentARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponentia... (diff)
downloadlinux-b89aa12c177477e34caa722818536fb5d0bffd76.tar.xz
linux-b89aa12c177477e34caa722818536fb5d0bffd76.zip
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/plat-sim')
0 files changed, 0 insertions, 0 deletions