Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern thmap(9): Convert membar_exit to membar_release.
details: https://anonhg.NetBSD.org/src/rev/78cda3b9a90c
branches: trunk
changeset: 365174:78cda3b9a90c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 23:51:57 2022 +0000
description:
thmap(9): Convert membar_exit to membar_release.
diffstat:
sys/kern/subr_thmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76f6098da181 -r 78cda3b9a90c sys/kern/subr_thmap.c
--- a/sys/kern/subr_thmap.c Sat Apr 09 23:51:48 2022 +0000
+++ b/sys/kern/subr_thmap.c Sat Apr 09 23:51:57 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_thmap.c,v 1.11 2022/04/01 00:16:40 riastradh Exp $ */
+/* $NetBSD: subr_thmap.c,v 1.12 2022/04/09 23:51:57 riastradh Exp $ */
/*-
* Copyright (c) 2018 Mindaugas Rasiukevicius <rmind at noxt eu>
@@ -112,7 +112,7 @@
#include "utils.h"
#endif
-THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.11 2022/04/01 00:16:40 riastradh Exp $");
+THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.12 2022/04/09 23:51:57 riastradh Exp $");
#include <crypto/blake2/blake2s.h>
@@ -121,7 +121,7 @@
*/
#ifdef _KERNEL
#define ASSERT KASSERT
-#define atomic_thread_fence(x) membar_exit() /* only used for release order */
+#define atomic_thread_fence(x) membar_release() /* only used for release order */
#define atomic_compare_exchange_weak_explicit_32(p, e, n, m1, m2) \
(atomic_cas_32((p), *(e), (n)) == *(e))
#define atomic_compare_exchange_weak_explicit_ptr(p, e, n, m1, m2) \
Home |
Main Index |
Thread Index |
Old Index