linux-zen-server/scripts/atomic/fallbacks/set_release

13 lines
242 B
Plaintext
Raw Normal View History

2023-08-30 17:53:23 +02:00
cat <<EOF
static __always_inline void
arch_${atomic}_set_release(${atomic}_t *v, ${int} i)
{
if (__native_word(${atomic}_t)) {
smp_store_release(&(v)->counter, i);
} else {
__atomic_release_fence();
arch_${atomic}_set(v, i);
}
}
EOF