1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Define ATOMIC_LONG_INIT() in the LinuxKPI.

Obtained from:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2016-05-26 10:03:22 +00:00
parent f83f88912d
commit 2bb46d5516
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300725

View File

@ -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;