diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-18 14:41:56 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-18 14:41:56 +0000 |
commit | c8091cffb315d5e42a67e8aab8dcaf87784df055 (patch) | |
tree | cb83d3945bcc46180dffe28c87c528f9ce4bdae7 /sys/arch/arm | |
parent | 21fcb8f3eb3e0c57daee39d46888aca33b0033ad (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/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/pmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/pmap.c b/sys/arch/arm/arm/pmap.c index ad4e211ff98..b19bce07a63 100644 --- a/sys/arch/arm/arm/pmap.c +++ b/sys/arch/arm/arm/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.12 2007/04/21 19:26:03 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.13 2007/05/18 14:41:55 art Exp $ */ /* $NetBSD: pmap.c,v 1.147 2004/01/18 13:03:50 scw Exp $ */ /* @@ -198,6 +198,7 @@ #include <sys/user.h> #include <sys/pool.h> #include <sys/cdefs.h> +#include <sys/sched.h> #include <uvm/uvm.h> @@ -3340,7 +3341,7 @@ pmap_pageidlezero(struct vm_page *pg) for (i = 0, ptr = (int *)cdstp; i < (PAGE_SIZE / sizeof(int)); i++) { - if (whichqs != 0) { + if (!sched_is_idle()) { /* * A process has become ready. Abort now, * so we don't keep it waiting while we |