X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=include%2Flinux%2Fseqlock.h;h=bb1fac5b8ee87f99def8e3565c40ac18f4e930e9;hp=c6db9fb33c448f28197ffb6d135689daf58625b6;hb=refs%2Fheads%2Fpandora-3.2;hpb=df2cbe40753dc36af294c30209ed909869aca6cf diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h index c6db9fb33c44..bb1fac5b8ee8 100644 --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -141,7 +141,7 @@ static inline unsigned __read_seqcount_begin(const seqcount_t *s) unsigned ret; repeat: - ret = s->sequence; + ret = ACCESS_ONCE(s->sequence); if (unlikely(ret & 1)) { cpu_relax(); goto repeat;