Module Name: src Committed By: martin Date: Thu Sep 1 08:47:56 UTC 2011
Modified Files: src/sys/arch/sparc/sparc: pmap.c Log Message: In pmap_unwire() fix an obvious editor mishap - enable kernel preemption before returning, not the other way around. Might fix PR kern/45137. To generate a diff of this commit: cvs rdiff -u -r1.345 -r1.346 src/sys/arch/sparc/sparc/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/sparc/pmap.c diff -u src/sys/arch/sparc/sparc/pmap.c:1.345 src/sys/arch/sparc/sparc/pmap.c:1.346 --- src/sys/arch/sparc/sparc/pmap.c:1.345 Sun Aug 28 10:26:15 2011 +++ src/sys/arch/sparc/sparc/pmap.c Thu Sep 1 08:47:56 2011 @@ -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++; - return; kpreempt_enable(); + return; } pm->pm_stats.wired_count--;