X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=include%2Fvdso%2Fhelpers.h;h=9a2af9fca45e21a1d87947e8ba0f221225dc2cb6;hb=99db590b083fa2bc60adfcb5c839a62db4ef1d79;hp=01641dbb68ef09cf106746bea5722f740548b314;hpb=e94f8ccde4710f9a3e51dd3bc6134c96e33f29b3;p=linux.git 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();