git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pandora: defconfig: update
[pandora-kernel.git]
/
include
/
linux
/
seqlock.h
diff --git
a/include/linux/seqlock.h
b/include/linux/seqlock.h
index
e981189
..
bb1fac5
100644
(file)
--- a/
include/linux/seqlock.h
+++ b/
include/linux/seqlock.h
@@
-28,6
+28,7
@@
#include <linux/spinlock.h>
#include <linux/preempt.h>
+#include <asm/processor.h>
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;