Module Name: src Committed By: riastradh Date: Fri Feb 24 11:03:13 UTC 2023
Modified Files: src/sys/uvm: uvm_aobj.c Log Message: uvm: Eliminate __HAVE_ATOMIC_AS_MEMBAR conditionals. Discussed on tech-kern: https://mail-index.netbsd.org/tech-kern/2023/02/23/msg028729.html To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src/sys/uvm/uvm_aobj.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/uvm/uvm_aobj.c diff -u src/sys/uvm/uvm_aobj.c:1.156 src/sys/uvm/uvm_aobj.c:1.157 --- src/sys/uvm/uvm_aobj.c:1.156 Tue May 31 08:43:16 2022 +++ src/sys/uvm/uvm_aobj.c Fri Feb 24 11:03:13 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_aobj.c,v 1.156 2022/05/31 08:43:16 andvar Exp $ */ +/* $NetBSD: uvm_aobj.c,v 1.157 2023/02/24 11:03:13 riastradh Exp $ */ /* * Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.156 2022/05/31 08:43:16 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.157 2023/02/24 11:03:13 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_uvmhist.h" @@ -604,16 +604,12 @@ uao_detach(struct uvm_object *uobj) KASSERT(uobj->uo_refs > 0); UVMHIST_LOG(maphist," (uobj=%#jx) ref=%jd", (uintptr_t)uobj, uobj->uo_refs, 0, 0); -#ifndef __HAVE_ATOMIC_AS_MEMBAR membar_release(); -#endif if (atomic_dec_uint_nv(&uobj->uo_refs) > 0) { UVMHIST_LOG(maphist, "<- done (rc>0)", 0,0,0,0); return; } -#ifndef __HAVE_ATOMIC_AS_MEMBAR membar_acquire(); -#endif /* * Remove the aobj from the global list.