Sign in
linux
/
linux
/
kernel
/
git
/
dhowells
/
linux-fs
/
dd093fb08e8f8a958fec4eef36f9f09eac047f60
/
.
/
scripts
/
atomic
/
fallbacks
/
set_release
blob: 05cdb7f42477ad2acd0bb04918bc59a93921b5e7 [
file
] [
log
] [
blame
]
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