Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356288
b: refs/heads/master
c: 65c9d1b
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Feb 19, 2013
1 parent f58cc28 commit afabff5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6c0c943a15d0b3d6ac33760cb8f95c75f395895
refs/heads/master: 65c9d1bbc9f32c568a4f7ad154c9a10b0028df52
21 changes: 0 additions & 21 deletions trunk/include/linux/seqlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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 */

0 comments on commit afabff5

Please sign in to comment.