Module Name: src
Committed By: martin
Date: Tue Dec 3 13:30:52 UTC 2019
Modified Files:
src/sys/kern: subr_pserialize.c
Log Message:
Stopgap hack to unbreak the build: #ifdef __HAVE_ATOMIC64_LOADSTORE
the event counter update. From rmind@
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/kern/subr_pserialize.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/kern/subr_pserialize.c
diff -u src/sys/kern/subr_pserialize.c:1.14 src/sys/kern/subr_pserialize.c:1.15
--- src/sys/kern/subr_pserialize.c:1.14 Tue Dec 3 05:07:49 2019
+++ src/sys/kern/subr_pserialize.c Tue Dec 3 13:30:52 2019
@@ -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 @@ pserialize_perform(pserialize_t psz)
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