Module Name: src Committed By: riastradh Date: Sat Feb 1 02:33:09 UTC 2020
Modified Files: src/sys/dev/pci/ixgbe: ixgbe_netbsd.c Log Message: Use atomic_load_acquire for FreeBSDish atomic_load_acq_uint shim. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/ixgbe/ixgbe_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ixgbe_netbsd.c diff -u src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.12 src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.13 --- src/sys/dev/pci/ixgbe/ixgbe_netbsd.c:1.12 Tue Jan 21 14:55:55 2020 +++ src/sys/dev/pci/ixgbe/ixgbe_netbsd.c Sat Feb 1 02:33:08 2020 @@ -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 @@ ixgbe_pci_enable_busmaster(pci_chipset_t 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); }