Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys/uvm One more XIP code reduction.
details: https://anonhg.NetBSD.org/src/rev/dce6895b3e47
branches: uebayasi-xip
changeset: 751743:dce6895b3e47
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Jul 14 06:33:31 2010 +0000
description:
One more XIP code reduction.
diffstat:
sys/uvm/uvm_fault.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (42 lines):
diff -r a1f5f091325c -r dce6895b3e47 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Tue Jul 13 01:47:23 2010 +0000
+++ b/sys/uvm/uvm_fault.c Wed Jul 14 06:33:31 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.166.2.17 2010/07/13 01:47:23 uebayasi Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.166.2.18 2010/07/14 06:33:31 uebayasi Exp $ */
/*
*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.17 2010/07/13 01:47:23 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.18 2010/07/14 06:33:31 uebayasi Exp $");
#include "opt_uvmhist.h"
#include "opt_xip.h"
@@ -2088,14 +2088,6 @@
*/
}
- if (uvm_pageisdirect_p(uobjpage)) {
- /*
- * XIP devices pages are never paged out, no need to
- * dispose.
- */
- goto uvm_fault_lower_promote_done;
- }
-
/*
* dispose of uobjpage. it can't be PG_RELEASED
* since we still hold the object lock.
@@ -2105,8 +2097,6 @@
if (uobjpage->flags & PG_WANTED)
/* still have the obj lock */
wakeup(uobjpage);
-
-uvm_fault_lower_promote_done:
uobjpage->flags &= ~(PG_BUSY|PG_WANTED);
UVM_PAGE_OWN(uobjpage, NULL);
mutex_exit(&uobj->vmobjlock);
Home |
Main Index |
Thread Index |
Old Index