Define ATOMIC_LONG_INIT() in the LinuxKPI.

Obtained from:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2016-05-26 10:03:22 +00:00
parent 01daffb975
commit b9085c1dde

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;