summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-05-18 14:41:56 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-05-18 14:41:56 +0000
commitc8091cffb315d5e42a67e8aab8dcaf87784df055 (patch)
treecb83d3945bcc46180dffe28c87c528f9ce4bdae7 /sys/uvm
parent21fcb8f3eb3e0c57daee39d46888aca33b0033ad (diff)
Instead of checking whichqs directly, add a "sched_is_idle()" macro to
sys/sched.h and use that to check if there's something to do. kettenis@ thib@ ok
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 0ef257dad2d..2caca1ba938 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.59 2007/04/13 18:57:49 art Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.60 2007/05/18 14:41:55 art Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -1397,5 +1397,5 @@ uvm_pageidlezero()
uvmexp.free++;
uvmexp.zeropages++;
uvm_unlock_fpageq(s);
- } while (whichqs == 0);
+ } while (sched_is_idle());
}