mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 17:00:37 -05:00
h8300 atomic.h update
add atomic_sub_and_test define. Signed-off-by: Yoshinori Sato <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
218f0aaee8
commit
b67405bbbb
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ static __inline__ int atomic_sub_return(int i, atomic_t *v)
|
|||
}
|
||||
|
||||
#define atomic_sub(i, v) atomic_sub_return(i, v)
|
||||
#define atomic_sub_and_test(i,v) (atomic_sub_return(i, v) == 0)
|
||||
|
||||
static __inline__ int atomic_inc_return(atomic_t *v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue