Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/vr call uvm_pageidlezero() while CPU is idle.
details: https://anonhg.NetBSD.org/src/rev/a03a1ba9e355
branches: trunk
changeset: 485954:a03a1ba9e355
user: shin <shin%NetBSD.org@localhost>
date: Tue May 09 13:23:57 2000 +0000
description:
call uvm_pageidlezero() while CPU is idle.
diffstat:
sys/arch/hpcmips/vr/vr_idle.S | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 648dd32bdd7e -r a03a1ba9e355 sys/arch/hpcmips/vr/vr_idle.S
--- a/sys/arch/hpcmips/vr/vr_idle.S Tue May 09 13:20:55 2000 +0000
+++ b/sys/arch/hpcmips/vr/vr_idle.S Tue May 09 13:23:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vr_idle.S,v 1.3 2000/04/11 04:39:14 nisimura Exp $ */
+/* $NetBSD: vr_idle.S,v 1.4 2000/05/09 13:23:57 shin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -64,9 +64,16 @@
mtc0 t0, MIPS_COP_0_STATUS # enable all interrupts
nop
sw zero, _C_LABEL(curproc) # set curproc NULL for stats
+
+ /* 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
- #nop # -slip-
bne t0, zero, 1f
nop
.word VR_OPCODE_STANDBY
Home |
Main Index |
Thread Index |
Old Index