summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
committeralc <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
commita301513e8024c35e825bcf07cf42e7f82eeb2226 (patch)
treeb8d896d556afc51871db14a4580f03ad3c2461ef /sys/powerpc/aim
parent5e906c1f10a710b3e76fa761ee5ee3e3686f62ea (diff)
downloadFreeBSD-src-a301513e8024c35e825bcf07cf42e7f82eeb2226.zip
FreeBSD-src-a301513e8024c35e825bcf07cf42e7f82eeb2226.tar.gz
The core of this patch is to vm/vm_page.h. The effects are two-fold: (1) to
eliminate an extra (useless) level of indirection in half of the page queue accesses and (2) to use a single name for each queue throughout, instead of, e.g., "vm_page_queue_active" in some places and "vm_page_queues[PQ_ACTIVE]" in others. Reviewed by: dillon
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index e9ed2c7..7a96d2b 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -422,7 +422,7 @@ vm_page_zero_idle()
zero_state = 0;
if (m != NULL && (m->flags & PG_ZERO) == 0) {
vm_page_queues[m->queue].lcnt--;
- TAILQ_REMOVE(vm_page_queues[m->queue].pl, m, pageq);
+ TAILQ_REMOVE(&vm_page_queues[m->queue].pl, m, pageq);
m->queue = PQ_NONE;
splx(s);
#if 0
@@ -436,7 +436,7 @@ vm_page_zero_idle()
vm_page_flag_set(m, PG_ZERO);
m->queue = PQ_FREE + m->pc;
vm_page_queues[m->queue].lcnt++;
- TAILQ_INSERT_TAIL(vm_page_queues[m->queue].pl, m,
+ TAILQ_INSERT_TAIL(&vm_page_queues[m->queue].pl, m,
pageq);
++vm_page_zero_count;
++cnt_prezero;
OpenPOWER on IntegriCloud