diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-05-23 11:44:46 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-05-23 11:44:46 +0000 |
commit | a5692befebcaeadd48eb2e7965d919df90e47d23 (patch) | |
tree | eb65fdbd8ce172ad70a1995ec9622ebcee5acc3a | |
parent | e422a20ca7ae9ea2d1d9d363b9576b709c46c5ff (diff) | |
download | FreeBSD-src-a5692befebcaeadd48eb2e7965d919df90e47d23.zip FreeBSD-src-a5692befebcaeadd48eb2e7965d919df90e47d23.tar.gz |
Add support for atomic_long_inc_not_zero() to the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/compat/linuxkpi/common/include/asm/atomic-long.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/asm/atomic-long.h b/sys/compat/linuxkpi/common/include/asm/atomic-long.h index 0cf91c9..90187fc 100644 --- a/sys/compat/linuxkpi/common/include/asm/atomic-long.h +++ b/sys/compat/linuxkpi/common/include/asm/atomic-long.h @@ -41,6 +41,7 @@ typedef struct { #define atomic_long_add(i, v) atomic_long_add_return((i), (v)) #define atomic_long_inc_return(v) atomic_long_add_return(1, (v)) +#define atomic_long_inc_not_zero(v) atomic_long_inc_not_zero(v) static inline long atomic_long_add_return(long i, atomic_long_t *v) |