summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-12-01 12:37:13 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-12-01 12:37:13 +0000
commit3cafcbf3ed90c08e0263b4a7a2e788c467c12764 (patch)
tree22d6ad503ab372904a22c9f980043fe8abc26a51
parenta804da2c0cff632eac2eaa839cfbf48f400fbe25 (diff)
myx doesnt use atomic.h anymore.
-rw-r--r--sys/dev/pci/if_myx.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index ecb47ce472e..fef3993aeb7 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.88 2015/11/25 03:09:59 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.89 2015/12/01 12:37:12 dlg Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -34,7 +34,6 @@
#include <sys/device.h>
#include <sys/proc.h>
#include <sys/queue.h>
-#include <sys/atomic.h>
#include <machine/bus.h>
#include <machine/intr.h>
@@ -1867,23 +1866,6 @@ destroy:
return (rv);
}
-static inline int
-myx_rx_ring_enter(struct myx_rx_ring *mrr)
-{
- return (atomic_inc_int_nv(&mrr->mrr_running) == 1);
-}
-
-static inline int
-myx_rx_ring_leave(struct myx_rx_ring *mrr)
-{
- if (atomic_cas_uint(&mrr->mrr_running, 1, 0) == 1)
- return (1);
-
- mrr->mrr_running = 1;
-
- return (0);
-}
-
int
myx_rx_fill(struct myx_softc *sc, struct myx_rx_ring *mrr)
{