summaryrefslogtreecommitdiff
path: root/core/host/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/host/atomic.h')
-rw-r--r--core/host/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/host/atomic.h b/core/host/atomic.h
index aaf990dac1..1513823b6f 100644
--- a/core/host/atomic.h
+++ b/core/host/atomic.h
@@ -33,7 +33,7 @@ static inline atomic_val_t atomic_sub(atomic_t *addr, atomic_val_t value)
return __atomic_fetch_sub(addr, value, __ATOMIC_SEQ_CST);
}
-static inline atomic_val_t atomic_read_clear(atomic_t *addr)
+static inline atomic_val_t atomic_clear(atomic_t *addr)
{
return __atomic_exchange_n(addr, 0, __ATOMIC_SEQ_CST);
}