projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vmstat: use our own timer events
[powerpc.git]
/
include
/
linux
/
seqlock.h
diff --git
a/include/linux/seqlock.h
b/include/linux/seqlock.h
index
52c9eb9
..
26e4925
100644
(file)
--- a/
include/linux/seqlock.h
+++ b/
include/linux/seqlock.h
@@
-61,10
+61,10
@@
static inline void write_seqlock(seqlock_t *sl)
{
spin_lock(&sl->lock);
++sl->sequence;
{
spin_lock(&sl->lock);
++sl->sequence;
- smp_wmb();
-}
+ smp_wmb();
+}
-static inline void write_sequnlock(seqlock_t *sl)
+static inline void write_sequnlock(seqlock_t *sl)
{
smp_wmb();
sl->sequence++;
{
smp_wmb();
sl->sequence++;
@@
-77,7
+77,7
@@
static inline int write_tryseqlock(seqlock_t *sl)
if (ret) {
++sl->sequence;
if (ret) {
++sl->sequence;
- smp_wmb();
+ smp_wmb();
}
return ret;
}
}
return ret;
}