[1/3] bus/vmbus: use C11 memory model GCC builtin atomics
Checks
Commit Message
Replace use of __sync_or_and_fetch with __atomic_fetch_or.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
drivers/bus/vmbus/vmbus_channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -22,7 +22,7 @@
vmbus_sync_set_bit(volatile uint32_t *addr, uint32_t mask)
{
/* Use GCC builtin which atomic does atomic OR operation */
- __sync_or_and_fetch(addr, mask);
+ __atomic_fetch_or(addr, mask, __ATOMIC_SEQ_CST);
}
static inline void