Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Only call uvm_pageidlezero() if uvm.page_...
details: https://anonhg.NetBSD.org/src/rev/910d9c46e035
branches: trunk
changeset: 485557:910d9c46e035
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Apr 30 23:01:24 2000 +0000
description:
Only call uvm_pageidlezero() if uvm.page_idle_zero is set.
diffstat:
sys/arch/mips/mips/locore.S | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r d0f14b7b07f2 -r 910d9c46e035 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Sun Apr 30 22:56:12 2000 +0000
+++ b/sys/arch/mips/mips/locore.S Sun Apr 30 23:01:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.95 2000/04/29 14:44:42 soren Exp $ */
+/* $NetBSD: locore.S,v 1.96 2000/04/30 23:01:24 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -264,7 +264,13 @@
mtc0 t0, MIPS_COP_0_STATUS # enable all interrupts
nop
sw zero, _C_LABEL(curproc) # set curproc NULL for stats
- jal _C_LABEL(uvm_pageidlezero) # try to zero free pages
+
+ /* Try to zero some free pages. */
+ lw t0, _C_LABEL(uvm) + UVM_PAGE_IDLE_ZERO
+ nop
+ beq t0, zero, 1f
+ nop
+ jal _C_LABEL(uvm_pageidlezero)
nop
1:
lw t0, _C_LABEL(whichqs) # look for non-empty queue
Home |
Main Index |
Thread Index |
Old Index