Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern rumpkern/sleepq: Convert membar_ex...



details:   https://anonhg.NetBSD.org/src/rev/2628c62afc9a
branches:  trunk
changeset: 365166:2628c62afc9a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 23:45:23 2022 +0000

description:
rumpkern/sleepq: Convert membar_exit/store to atomic_store_release.

diffstat:

 sys/rump/librump/rumpkern/sleepq.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 5dd50ac3131b -r 2628c62afc9a sys/rump/librump/rumpkern/sleepq.c
--- a/sys/rump/librump/rumpkern/sleepq.c        Sat Apr 09 23:45:14 2022 +0000
+++ b/sys/rump/librump/rumpkern/sleepq.c        Sat Apr 09 23:45:23 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sleepq.c,v 1.21 2020/11/01 20:58:38 christos Exp $     */
+/*     $NetBSD: sleepq.c,v 1.22 2022/04/09 23:45:23 riastradh Exp $    */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sleepq.c,v 1.21 2020/11/01 20:58:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sleepq.c,v 1.22 2022/04/09 23:45:23 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/condvar.h>
@@ -163,7 +163,6 @@
        KASSERT(mutex_owned(l->l_mutex));
 
        old = l->l_mutex;
-       membar_exit();
-       l->l_mutex = new;
+       atomic_store_release(&l->l_mutex, new);
        mutex_spin_exit(old);
 }



Home | Main Index | Thread Index | Old Index