aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/seqlock.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-16 12:38:22 -0400
committerIngo Molnar <mingo@kernel.org>2013-02-19 02:43:33 -0500
commit65c9d1bbc9f32c568a4f7ad154c9a10b0028df52 (patch)
treec199e772c40979406f38e7c49f1b2c997716e188 /include/linux/seqlock.h
parenta6c0c943a15d0b3d6ac33760cb8f95c75f395895 (diff)
seqlock: Remove unused functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/seqlock.h')
-rw-r--r--include/linux/seqlock.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index 600060e25ec6..cb0599ca049c 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -69,17 +69,6 @@ static inline void write_sequnlock(seqlock_t *sl)
69 spin_unlock(&sl->lock); 69 spin_unlock(&sl->lock);
70} 70}
71 71
72static inline int write_tryseqlock(seqlock_t *sl)
73{
74 int ret = spin_trylock(&sl->lock);
75
76 if (ret) {
77 ++sl->sequence;
78 smp_wmb();
79 }
80 return ret;
81}
82
83/* Start of read calculation -- fetch last complete writer token */ 72/* Start of read calculation -- fetch last complete writer token */
84static __always_inline unsigned read_seqbegin(const seqlock_t *sl) 73static __always_inline unsigned read_seqbegin(const seqlock_t *sl)
85{ 74{
@@ -269,14 +258,4 @@ static inline void write_seqcount_barrier(seqcount_t *s)
269#define write_sequnlock_bh(lock) \ 258#define write_sequnlock_bh(lock) \
270 do { write_sequnlock(lock); local_bh_enable(); } while(0) 259 do { write_sequnlock(lock); local_bh_enable(); } while(0)
271 260
272#define read_seqbegin_irqsave(lock, flags) \
273 ({ local_irq_save(flags); read_seqbegin(lock); })
274
275#define read_seqretry_irqrestore(lock, iv, flags) \
276 ({ \
277 int ret = read_seqretry(lock, iv); \
278 local_irq_restore(flags); \
279 ret; \
280 })
281
282#endif /* __LINUX_SEQLOCK_H */ 261#endif /* __LINUX_SEQLOCK_H */