aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/seqlock.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-05-24 08:08:08 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-05-24 09:22:17 -0400
commitc4dbe54ed7296ac3249c415d512dd6d649f66f4b (patch)
tree7dcbce1bceccb31963869b347afbb86dfd11e709 /include/linux/seqlock.h
parentd762f4383100c2a87b1a3f2d678cd3b5425655b4 (diff)
seqlock: Get rid of SEQLOCK_UNLOCKED
All static seqlock should be initialized with the lockdep friendly __SEQLOCK_UNLOCKED() macro. Remove legacy SEQLOCK_UNLOCKED() macro. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Cc: David Miller <davem@davemloft.net> Link: http://lkml.kernel.org/r/%3C1306238888.3026.31.camel%40edumazet-laptop%3E Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/seqlock.h')
-rw-r--r--include/linux/seqlock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index 06d69648fc86..e9811892844f 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -41,9 +41,6 @@ typedef struct {
41#define __SEQLOCK_UNLOCKED(lockname) \ 41#define __SEQLOCK_UNLOCKED(lockname) \
42 { 0, __SPIN_LOCK_UNLOCKED(lockname) } 42 { 0, __SPIN_LOCK_UNLOCKED(lockname) }
43 43
44#define SEQLOCK_UNLOCKED \
45 __SEQLOCK_UNLOCKED(old_style_seqlock_init)
46
47#define seqlock_init(x) \ 44#define seqlock_init(x) \
48 do { \ 45 do { \
49 (x)->sequence = 0; \ 46 (x)->sequence = 0; \