Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc In pmap_unwire() fix an obvious editor ...



details:   https://anonhg.NetBSD.org/src/rev/ad9c1d23f97c
branches:  trunk
changeset: 769137:ad9c1d23f97c
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 01 08:47:56 2011 +0000

description:
In pmap_unwire() fix an obvious editor mishap - enable kernel preemption
before returning, not the other way around.
Might fix PR kern/45137.

diffstat:

 sys/arch/sparc/sparc/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 4b5a807be9de -r ad9c1d23f97c sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Thu Sep 01 08:43:24 2011 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Thu Sep 01 08:47:56 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.345 2011/08/28 10:26:15 mrg Exp $ */
+/*     $NetBSD: pmap.c,v 1.346 2011/09/01 08:47:56 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.345 2011/08/28 10:26:15 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.346 2011/09/01 08:47:56 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -6671,8 +6671,8 @@
        }
        if (!owired) {
                pmap_stats.ps_useless_changewire++;
+               kpreempt_enable();
                return;
-               kpreempt_enable();
        }
 
        pm->pm_stats.wired_count--;



Home | Main Index | Thread Index | Old Index