Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Use atomic_load_acquire for FreeBSDish ato...



details:   https://anonhg.NetBSD.org/src/rev/7f7c9b31c51c
branches:  trunk
changeset: 744410:7f7c9b31c51c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Feb 01 02:33:08 2020 +0000

description:
Use atomic_load_acquire for FreeBSDish atomic_load_acq_uint shim.

diffstat:

 sys/dev/pci/ixgbe/ixgbe_netbsd.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (26 lines):

diff -r 26d4b2744970 -r 7f7c9b31c51c sys/dev/pci/ixgbe/ixgbe_netbsd.c
--- a/sys/dev/pci/ixgbe/ixgbe_netbsd.c  Sat Feb 01 02:32:40 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_netbsd.c  Sat Feb 01 02:33:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_netbsd.c,v 1.12 2020/01/21 14:55:55 msaitoh Exp $ */
+/* $NetBSD: ixgbe_netbsd.c,v 1.13 2020/02/01 02:33:08 riastradh Exp $ */
 /*
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -303,15 +303,5 @@
 u_int
 atomic_load_acq_uint(volatile u_int *p)
 {
-       u_int rv;
-
-       rv = *p;
-       /*
-        * XXX
-        * membar_sync() is far more than we need on most CPUs;
-        * we just don't have an MI load-acqure operation.
-        */
-       membar_sync();
-
-       return rv;
+       return atomic_load_acquire(p);
 }



Home | Main Index | Thread Index | Old Index