Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331484
b: refs/heads/master
c: 08928e7
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Aug 25, 2012
1 parent 35b5b83 commit ff564c7
Show file tree
Hide file tree
Showing 2 changed files with 8 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: e780c452cfea10cbfae1c96dc16e506758138b6f
refs/heads/master: 08928e7aea930e6822ce8f1b20068bf857ecf20d
9 changes: 7 additions & 2 deletions trunk/arch/arm/include/asm/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
#define _ASM_MUTEX_H
/*
* On pre-ARMv6 hardware this results in a swp-based implementation,
* which is the most efficient. For ARMv6+, we emit a pair of exclusive
* accesses instead.
* which is the most efficient. For ARMv6+, we have exclusive memory
* accessors and use atomic_dec to avoid the extra xchg operations
* on the locking slowpaths.
*/
#if __LINUX_ARM_ARCH__ < 6
#include <asm-generic/mutex-xchg.h>
#else
#include <asm-generic/mutex-dec.h>
#endif
#endif /* _ASM_MUTEX_H */

0 comments on commit ff564c7

Please sign in to comment.