seqlock: Remove atomic_init to fix compilation error.

Since the adafruit-kb2040:smp do not support the `atomic_init`, we have
to remove the function.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2025-11-14 10:18:18 +08:00
committed by Alan C. Assis
parent 23e985b5ba
commit 5c5872dbac
+2 -3
View File
@@ -66,10 +66,9 @@ extern "C"
static inline_function void seqlock_init(FAR seqcount_t *s)
{
#ifdef CONFIG_SMP
atomic_init((FAR atomic_t *)&s->sequence, 0u);
#else
s->sequence = 0u;
#ifdef CONFIG_SMP
SMP_WMB();
#endif
}