Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Reduce resident_count by number of pages, ...
details: https://anonhg.NetBSD.org/src/rev/4d0d6deb4b62
branches: trunk
changeset: 328845:4d0d6deb4b62
user: matt <matt%NetBSD.org@localhost>
date: Sun Apr 20 22:31:34 2014 +0000
description:
Reduce resident_count by number of pages, not number of ptes.
diffstat:
sys/arch/arm/arm32/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e1cab5426063 -r 4d0d6deb4b62 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Apr 20 21:26:51 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Apr 20 22:31:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.287 2014/04/12 16:03:59 matt Exp $ */
+/* $NetBSD: pmap.c,v 1.288 2014/04/20 22:31:34 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
#include <arm/locore.h>
//#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.287 2014/04/12 16:03:59 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.288 2014/04/20 22:31:34 matt Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -3583,7 +3583,7 @@
if (pm != pmap_kernel())
pmap_free_l2_bucket(pm, l2b, mappings);
- pm->pm_stats.resident_count -= mappings;
+ pm->pm_stats.resident_count -= mappings / (PAGE_SIZE/L2_S_SIZE);
}
pmap_release_pmap_lock(pm);
Home |
Main Index |
Thread Index |
Old Index