diff options
author | avg <avg@FreeBSD.org> | 2010-12-11 10:21:38 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-12-11 10:21:38 +0000 |
commit | 6f970f64093c1c1b2023477eebfba9aeab0c5adb (patch) | |
tree | 8037bf9cf96b935ddfe2778506404f4c987930f5 /sys/mips/rmi | |
parent | 094d0a5ecf146f46c187f9368951fe8a9227cce8 (diff) | |
download | FreeBSD-src-6f970f64093c1c1b2023477eebfba9aeab0c5adb.zip FreeBSD-src-6f970f64093c1c1b2023477eebfba9aeab0c5adb.tar.gz |
fix atomic_set_xxx misuse in rge
It seems that atomic_set_xxx and atomic_store_xxx were confused.
Reviewed by: jhb (general issue)
MFC after: 3 weeks
Diffstat (limited to 'sys/mips/rmi')
-rw-r--r-- | sys/mips/rmi/dev/xlr/rge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/rmi/dev/xlr/rge.c b/sys/mips/rmi/dev/xlr/rge.c index a529377..e6bc6da 100644 --- a/sys/mips/rmi/dev/xlr/rge.c +++ b/sys/mips/rmi/dev/xlr/rge.c @@ -170,7 +170,7 @@ extern uint32_t cpu_ltop_map[32]; static int port_counters[4][8] __aligned(XLR_CACHELINE_SIZE); #define port_inc_counter(port, counter) atomic_add_int(&port_counters[port][(counter)], 1) -#define port_set_counter(port, counter, value) atomic_set_int(&port_counters[port][(counter)], (value)) +#define port_set_counter(port, counter, value) atomic_store_int(&port_counters[port][(counter)], (value)) #else #define port_inc_counter(port, counter) /* Nothing */ #define port_set_counter(port, counter, value) /* Nothing */ @@ -2281,7 +2281,7 @@ rmi_xlr_mac_open(struct rge_softc *sc) mtx_unlock_spin(&priv->lock); for (i = 0; i < 8; i++) { - atomic_set_int(&(priv->frin_to_be_sent[i]), 0); + atomic_store_int(&(priv->frin_to_be_sent[i]), 0); } return 0; |