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/7c0e3c9efcda
branches:  trunk
changeset: 846881:7c0e3c9efcda
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 34833efe04e5 -r 7c0e3c9efcda 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