Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44301
b: refs/heads/master
c: 99a3eb3
h: refs/heads/master
i:
  44299: f84c157
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Dec 12, 2006
1 parent 68b2781 commit 6b6a6a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: d907dd2efd69195f4a5fc584a0eaecc599ca4c2c
refs/heads/master: 99a3eb3845f034eb55640a3da73e5e28349678c6
7 changes: 5 additions & 2 deletions trunk/include/linux/seqlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ typedef struct {
#define SEQLOCK_UNLOCKED \
__SEQLOCK_UNLOCKED(old_style_seqlock_init)

#define seqlock_init(x) \
do { *(x) = (seqlock_t) __SEQLOCK_UNLOCKED(x); } while (0)
#define seqlock_init(x) \
do { \
(x)->sequence = 0; \
spin_lock_init(&(x)->lock); \
} while (0)

#define DEFINE_SEQLOCK(x) \
seqlock_t x = __SEQLOCK_UNLOCKED(x)
Expand Down

0 comments on commit 6b6a6a9

Please sign in to comment.