Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26801
b: refs/heads/master
c: c2a4c40
h: refs/heads/master
i:
  26799: 9c37163
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed May 19, 2006
1 parent a1e46a6 commit a3e34b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec64152fee25e2a63f06d40d32c7b4cb62eab9a3
refs/heads/master: c2a4c40651e08e465d3a6130bd9f6dcc1ce21d83
6 changes: 6 additions & 0 deletions trunk/include/asm-arm/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ static inline void __raw_write_unlock(raw_rwlock_t *rw)
: "cc");
}

/* write_can_lock - would write_trylock() succeed? */
#define __raw_write_can_lock(x) ((x)->lock == 0x80000000)

/*
* Read locks are a bit more hairy:
* - Exclusively load the lock value.
Expand Down Expand Up @@ -198,4 +201,7 @@ static inline void __raw_read_unlock(raw_rwlock_t *rw)

#define __raw_read_trylock(lock) generic__raw_read_trylock(lock)

/* read_can_lock - would read_trylock() succeed? */
#define __raw_read_can_lock(x) ((x)->lock < 0x80000000)

#endif /* __ASM_SPINLOCK_H */

0 comments on commit a3e34b5

Please sign in to comment.