summaryrefslogtreecommitdiff
path: root/include/vdso/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/vdso/helpers.h')
-rw-r--r--include/vdso/helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vdso/helpers.h b/include/vdso/helpers.h
index 01641dbb68ef..9a2af9fca45e 100644
--- a/include/vdso/helpers.h
+++ b/include/vdso/helpers.h
@@ -10,7 +10,7 @@ static __always_inline u32 vdso_read_begin(const struct vdso_data *vd)
{
u32 seq;
- while ((seq = READ_ONCE(vd->seq)) & 1)
+ while (unlikely((seq = READ_ONCE(vd->seq)) & 1))
cpu_relax();
smp_rmb();