Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Stopgap hack to unbreak the build: #ifdef __HAVE_AT...
details: https://anonhg.NetBSD.org/src/rev/5b79a4505f25
branches: trunk
changeset: 1005282:5b79a4505f25
user: martin <martin%NetBSD.org@localhost>
date: Tue Dec 03 13:30:52 2019 +0000
description:
Stopgap hack to unbreak the build: #ifdef __HAVE_ATOMIC64_LOADSTORE
the event counter update. From rmind@
diffstat:
sys/kern/subr_pserialize.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r fe92bdd60f84 -r 5b79a4505f25 sys/kern/subr_pserialize.c
--- a/sys/kern/subr_pserialize.c Tue Dec 03 12:42:21 2019 +0000
+++ b/sys/kern/subr_pserialize.c Tue Dec 03 13:30:52 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pserialize.c,v 1.14 2019/12/03 05:07:49 riastradh Exp $ */
+/* $NetBSD: subr_pserialize.c,v 1.15 2019/12/03 13:30:52 martin Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pserialize.c,v 1.14 2019/12/03 05:07:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pserialize.c,v 1.15 2019/12/03 13:30:52 martin Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -120,8 +120,10 @@
KASSERT(psz->psz_owner == curlwp);
psz->psz_owner = NULL;
+#ifdef __HAVE_ATOMIC64_LOADSTORE
atomic_store_relaxed(&psz_ev_excl.ev_count,
1 + atomic_load_relaxed(&psz_ev_excl.ev_count));
+#endif
}
int
Home |
Main Index |
Thread Index |
Old Index