diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-07-16 10:31:45 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-08-04 09:26:33 +0530 |
commit | 69cbe630f54ec02efe47fdb9e257e617161da370 (patch) | |
tree | fe829de1c330ae1985d059f4cb58d8a8b3ef7c9d /arch/arc/include/asm/atomic.h | |
parent | ae7eae9e031206bde8645d038c76ad89e7d3fbcb (diff) | |
download | linux-69cbe630f54ec02efe47fdb9e257e617161da370.tar.gz linux-69cbe630f54ec02efe47fdb9e257e617161da370.tar.bz2 linux-69cbe630f54ec02efe47fdb9e257e617161da370.zip |
ARC: LLOCK/SCOND based rwlock
With LLOCK/SCOND, the rwlock counter can be atomically updated w/o need
for a guarding spin lock.
This in turn elides the EXchange instruction based spinning which causes
the cacheline transition to exclusive state and concurrent spinning
across cores would cause the line to keep bouncing around.
LLOCK/SCOND based implementation is superior as spinning on LLOCK keeps
the cacheline in shared state.
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/atomic.h')
0 files changed, 0 insertions, 0 deletions