• Vineet Gupta's avatar
    ARCv2: Implement atomic64 based on LLOCKD/SCONDD instructions · ce636527
    Vineet Gupta authored
    ARCv2 ISA provides 64-bit exclusive load/stores so use them to implement
    the 64-bit atomics and elide the spinlock based generic 64-bit atomics
    
    boot tested with atomic64 self-test (and GOD bless the person who wrote
    them, I realized my inline assmebly is sloppy as hell)
    
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: linux-snps-arc@lists.infradead.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    ce636527
atomic.h 15 KB