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 g/c a write-only variable.
details: https://anonhg.NetBSD.org/src/rev/8acb67a1a0af
branches: yamt-pagecache
changeset: 770911:8acb67a1a0af
user: yamt <yamt%NetBSD.org@localhost>
date: Thu May 22 19:10:31 2014 +0000
description:
g/c a write-only variable.
diffstat:
sys/arch/x86/x86/pmap.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r 1cb80db07de2 -r 8acb67a1a0af sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Thu May 22 19:09:50 2014 +0000
+++ b/sys/arch/x86/x86/pmap.c Thu May 22 19:10:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.137.2.11 2014/05/22 11:40:14 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.137.2.12 2014/05/22 19:10:31 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.11 2014/05/22 11:40:14 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.137.2.12 2014/05/22 19:10:31 yamt Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -1860,14 +1860,10 @@
{
lwp_t *l;
int lidx;
- struct uvm_object *obj;
KASSERT(ptp->wire_count == 1);
-
+ pmap_stats_update(pmap, -1, 0);
lidx = level - 1;
-
- obj = &pmap->pm_obj[lidx];
- pmap_stats_update(pmap, -1, 0);
if (pmap->pm_ptphint[lidx] == ptp)
pmap->pm_ptphint[lidx] = NULL;
ptp->wire_count = 0;
Home |
Main Index |
Thread Index |
Old Index