Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap TAB police.



details:   https://anonhg.NetBSD.org/src/rev/bb0b9360c0f0
branches:  trunk
changeset: 990444:bb0b9360c0f0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Oct 27 06:54:15 2021 +0000

description:
TAB police.

diffstat:

 sys/uvm/pmap/pmap_tlb.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r f3992cddeaa4 -r bb0b9360c0f0 sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Wed Oct 27 06:50:02 2021 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Wed Oct 27 06:54:15 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.48 2021/10/27 05:33:59 simonb Exp $     */
+/*     $NetBSD: pmap_tlb.c,v 1.49 2021/10/27 06:54:15 simonb Exp $     */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.48 2021/10/27 05:33:59 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.49 2021/10/27 06:54:15 simonb Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -1084,11 +1084,11 @@
 void
 pmap_tlb_check(pmap_t pm, bool (*func)(void *, vaddr_t, tlb_asid_t, pt_entry_t))
 {
-        struct pmap_tlb_info * const ti = cpu_tlb_info(curcpu());
-        struct pmap_asid_info * const pai = PMAP_PAI(pm, ti);
-        TLBINFO_LOCK(ti);
-        if (pm == pmap_kernel() || pai->pai_asid > KERNEL_PID)
+       struct pmap_tlb_info * const ti = cpu_tlb_info(curcpu());
+       struct pmap_asid_info * const pai = PMAP_PAI(pm, ti);
+       TLBINFO_LOCK(ti);
+       if (pm == pmap_kernel() || pai->pai_asid > KERNEL_PID)
                tlb_walk(pm, func);
-        TLBINFO_UNLOCK(ti);
+       TLBINFO_UNLOCK(ti);
 }
 #endif /* DEBUG */



Home | Main Index | Thread Index | Old Index