aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/asm
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-05-26 10:03:22 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-05-26 10:03:22 +0000
commit2bb46d55160cf1d02d521422bf9f3a034a95112b (patch)
tree563fd944c17b9b3f735acefd87021f8a2a69d80d /sys/compat/linuxkpi/common/include/asm
parentf83f88912d34013ef23005d36e35d9131a3a59b8 (diff)
downloadsrc-2bb46d55160cf1d02d521422bf9f3a034a95112b.tar.gz
src-2bb46d55160cf1d02d521422bf9f3a034a95112b.zip
Define ATOMIC_LONG_INIT() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=300725
Diffstat (limited to 'sys/compat/linuxkpi/common/include/asm')
-rw-r--r--sys/compat/linuxkpi/common/include/asm/atomic-long.h2
1 files changed, 2 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 6fbdc5e5556b..b7ccba5fcba8 100644
--- a/sys/compat/linuxkpi/common/include/asm/atomic-long.h
+++ b/sys/compat/linuxkpi/common/include/asm/atomic-long.h
@@ -35,6 +35,8 @@
#include <sys/types.h>
#include <machine/atomic.h>
+#define ATOMIC_LONG_INIT(x) { .counter = (x) }
+
typedef struct {
volatile long counter;
} atomic_long_t;