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=e9811892844f1cacca117fae323abef084ab615f;hb=4a6561b37ea65b4a98bd8fe16c57f231b1502302;hpb=56aa53391059e3730a304da4dd96b7b123b9fb75 diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h index e9811892844f..bb1fac5b8ee8 100644 --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -28,6 +28,7 @@ #include #include +#include typedef struct { unsigned sequence; @@ -140,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;