• Vineet Gupta's avatar
    ARC: LLOCK/SCOND based rwlock · 69cbe630
    Vineet Gupta authored
    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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    69cbe630
spinlock_types.h 1.03 KB