Source-Changes-HG archive

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

[src/cherry-xenmp]: src/sys/arch/xen/x86 Remove spurious locks



details:   https://anonhg.NetBSD.org/src/rev/67bb5e1ffac3
branches:  cherry-xenmp
changeset: 765632:67bb5e1ffac3
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Aug 22 17:39:19 2011 +0000

description:
Remove spurious locks

diffstat:

 sys/arch/xen/x86/xen_pmap.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 033448512367 -r 67bb5e1ffac3 sys/arch/xen/x86/xen_pmap.c
--- a/sys/arch/xen/x86/xen_pmap.c       Mon Aug 22 16:48:03 2011 +0000
+++ b/sys/arch/xen/x86/xen_pmap.c       Mon Aug 22 17:39:19 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_pmap.c,v 1.2.2.3 2011/08/20 19:22:47 cherry Exp $  */
+/*     $NetBSD: xen_pmap.c,v 1.2.2.4 2011/08/22 17:39:19 cherry Exp $  */
 
 /*
  * Copyright (c) 2007 Manuel Bouyer.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.2.2.3 2011/08/20 19:22:47 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.2.2.4 2011/08/22 17:39:19 cherry Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -212,7 +212,6 @@
 
        /* the kernel's pmap is always accessible */
        if (pmap == pmap_kernel()) {
-               mutex_enter(pmap->pm_lock);
                *pmap2 = NULL;
                *ptepp = PTE_BASE;
                *pdeppp = normal_pdes;
@@ -327,7 +326,6 @@
 {
 
        if (pmap == pmap_kernel()) {
-               mutex_exit(pmap->pm_lock);
                return;
        }
        KASSERT(kpreempt_disabled());



Home | Main Index | Thread Index | Old Index