diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-05-26 10:03:22 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-05-26 10:03:22 +0000 |
commit | 2bb46d55160cf1d02d521422bf9f3a034a95112b (patch) | |
tree | 563fd944c17b9b3f735acefd87021f8a2a69d80d /sys/compat/linuxkpi/common/include/asm | |
parent | f83f88912d34013ef23005d36e35d9131a3a59b8 (diff) | |
download | src-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.h | 2 |
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; |