seqlock: Remove unused functions
authorThomas Gleixner <tglx@linutronix.de>
Sat, 16 Jul 2011 16:38:22 +0000 (18:38 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Feb 2013 07:43:33 +0000 (08:43 +0100)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/seqlock.h

index 600060e25ec6cb644fd4141f48e2493490305c8a..cb0599ca049cadbe3534e96b8671b10dc0e229d1 100644 (file)
@@ -69,17 +69,6 @@ static inline void write_sequnlock(seqlock_t *sl)
        spin_unlock(&sl->lock);
 }
 
-static inline int write_tryseqlock(seqlock_t *sl)
-{
-       int ret = spin_trylock(&sl->lock);
-
-       if (ret) {
-               ++sl->sequence;
-               smp_wmb();
-       }
-       return ret;
-}
-
 /* Start of read calculation -- fetch last complete writer token */
 static __always_inline unsigned read_seqbegin(const seqlock_t *sl)
 {
@@ -269,14 +258,4 @@ static inline void write_seqcount_barrier(seqcount_t *s)
 #define write_sequnlock_bh(lock)                                       \
        do { write_sequnlock(lock); local_bh_enable(); } while(0)
 
-#define read_seqbegin_irqsave(lock, flags)                             \
-       ({ local_irq_save(flags);   read_seqbegin(lock); })
-
-#define read_seqretry_irqrestore(lock, iv, flags)                      \
-       ({                                                              \
-               int ret = read_seqretry(lock, iv);                      \
-               local_irq_restore(flags);                               \
-               ret;                                                    \
-       })
-
 #endif /* __LINUX_SEQLOCK_H */