xref: /linux/scripts/atomic/fallbacks/set_release (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1ace9bad4SMark Rutlandcat <<EOF
2dc1b4df0SMark Rutland	if (__native_word(${atomic}_t)) {
3ace9bad4SMark Rutland		smp_store_release(&(v)->counter, i);
4dc1b4df0SMark Rutland	} else {
5dc1b4df0SMark Rutland		__atomic_release_fence();
6*9257959aSMark Rutland		raw_${atomic}_set(v, i);
7dc1b4df0SMark Rutland	}
8ace9bad4SMark RutlandEOF
9