Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/linux linux: membar_exit not needed if...



details:   https://anonhg.NetBSD.org/src/rev/f27635436948
branches:  trunk
changeset: 1028734:f27635436948
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:53:26 2021 +0000

description:
linux: membar_exit not needed if we use locks here.

diffstat:

 sys/external/bsd/drm2/linux/linux_radixtree.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 339ae3085001 -r f27635436948 sys/external/bsd/drm2/linux/linux_radixtree.c
--- a/sys/external/bsd/drm2/linux/linux_radixtree.c     Sun Dec 19 11:53:18 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_radixtree.c     Sun Dec 19 11:53:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_radixtree.c,v 1.2 2021/12/19 11:51:51 riastradh Exp $    */
+/*     $NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.2 2021/12/19 11:51:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $");
 
 #include <sys/atomic.h>
 #include <sys/kmem.h>
@@ -69,8 +69,6 @@
        kludge->k_key = key;
        kludge->k_datum = datum;
 
-       membar_exit();
-
        __cpu_simple_lock(&root->rtr_lock);
        error = radix_tree_insert_node(&root->rtr_tree, key, kludge);
        __cpu_simple_unlock(&root->rtr_lock);



Home | Main Index | Thread Index | Old Index