Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/asm linux: Eliminate read_ba...
details: https://anonhg.NetBSD.org/src/rev/040414bf5b2c
branches: trunk
changeset: 1028893:040414bf5b2c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:25:11 2021 +0000
description:
linux: Eliminate read_barrier_depends, smp_read_barrier_depends.
These no longer exist in Linux; instead, Linux now uses READ_ONCE.
diffstat:
sys/external/bsd/common/include/asm/barrier.h | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diffs (32 lines):
diff -r 9d3687644cf2 -r 040414bf5b2c sys/external/bsd/common/include/asm/barrier.h
--- a/sys/external/bsd/common/include/asm/barrier.h Sun Dec 19 12:25:05 2021 +0000
+++ b/sys/external/bsd/common/include/asm/barrier.h Sun Dec 19 12:25:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: barrier.h,v 1.9 2021/12/19 12:25:05 riastradh Exp $ */
+/* $NetBSD: barrier.h,v 1.10 2021/12/19 12:25:11 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -57,22 +57,14 @@
#define rmb membar_consumer
#endif
-#ifdef __alpha__ /* XXX As if... */
-# define read_barrier_depends membar_sync
-#else
-# define read_barrier_depends() do {} while (0)
-#endif
-
#ifdef MULTIPROCESSOR
# define smp_mb membar_sync
# define smp_wmb membar_producer
# define smp_rmb membar_consumer
-# define smp_read_barrier_depends read_barrier_depends
#else
# define smp_mb() do {} while (0)
# define smp_wmb() do {} while (0)
# define smp_rmb() do {} while (0)
-# define smp_read_barrier_depends() do {} while (0)
#endif
#if defined(MULTIPROCESSOR) && !defined(__HAVE_ATOMIC_AS_MEMBAR)
Home |
Main Index |
Thread Index |
Old Index