Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap No need to hold the pmap_tlb_miss_lock when cal...
details: https://anonhg.NetBSD.org/src/rev/2975ef7f5ee3
branches: trunk
changeset: 372111:2975ef7f5ee3
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Oct 27 06:20:41 2022 +0000
description:
No need to hold the pmap_tlb_miss_lock when calling pmap_segtab_destroy
diffstat:
sys/uvm/pmap/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c42f3b05d229 -r 2975ef7f5ee3 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Thu Oct 27 06:19:56 2022 +0000
+++ b/sys/uvm/pmap/pmap.c Thu Oct 27 06:20:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.70 2022/10/27 06:19:56 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.71 2022/10/27 06:20:41 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.70 2022/10/27 06:19:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.71 2022/10/27 06:20:41 skrll Exp $");
/*
* Manages physical address maps.
@@ -764,8 +764,8 @@
kpreempt_disable();
pmap_tlb_miss_lock_enter();
pmap_tlb_asid_release_all(pmap);
+ pmap_tlb_miss_lock_exit();
pmap_segtab_destroy(pmap, NULL, 0);
- pmap_tlb_miss_lock_exit();
KASSERT(TAILQ_EMPTY(&pmap->pm_ppg_list));
Home |
Main Index |
Thread Index |
Old Index