foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

arcv3:hs5x: add atomic with atld #110

Closed pavelvkozlov closed 1 year ago

pavelvkozlov commented 1 year ago

Add new implementation of 32-bit atomic funcs with atld instructions that can be used if ARC_HAS_ATLD enabled. Also add possibility to use ARC_HAS_ATLD with or without ARC_HAS_LLSC. It will allow to use ATLD variant in case when LLSC is not desirable (because of llock/scond livelock issue) or combine and use ATLD for atomic functions and LLSC for cmpxchg.