Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/arch/x86/x86 share a lock among pmap uobjs
details: https://anonhg.NetBSD.org/src/rev/1f9774902df3
branches: yamt-pagecache
changeset: 770837:1f9774902df3
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Nov 24 15:26:56 2011 +0000
description:
share a lock among pmap uobjs
diffstat:
sys/arch/x86/x86/pmap.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 2a5c48509f4a -r 1f9774902df3 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Sun Nov 20 10:52:33 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c Thu Nov 24 15:26:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.137.2.4 2011/11/18 00:51:28 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.137.2.5 2011/11/24 15:26:56 yamt Exp $ */
/*-
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.137.2.4 2011/11/18 00:51:28 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.137.2.5 2011/11/24 15:26:56 yamt Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -1781,8 +1781,6 @@
obj = &pmap->pm_obj[lidx];
pmap_stats_update(pmap, -1, 0);
- if (lidx != 0)
- mutex_enter(obj->vmobjlock);
if (pmap->pm_ptphint[lidx] == ptp)
pmap->pm_ptphint[lidx] = NULL;
ptp->wire_count = 0;
@@ -1791,8 +1789,6 @@
KASSERT((l->l_pflag & LP_INTR) == 0);
VM_PAGE_TO_PP(ptp)->pp_link = l->l_md.md_gc_ptp;
l->l_md.md_gc_ptp = ptp;
- if (lidx != 0)
- mutex_exit(obj->vmobjlock);
}
static void
Home |
Main Index |
Thread Index |
Old Index