aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
committerAlan Cox <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
commitbe72f78813385b54aac58a533450228a5a28ba9a (patch)
treeb8d896d556afc51871db14a4580f03ad3c2461ef /sys/powerpc/aim
parent942df157ca96062cd39f3c21c5c6a85d85e46220 (diff)
downloadsrc-be72f78813385b54aac58a533450228a5a28ba9a.tar.gz
src-be72f78813385b54aac58a533450228a5a28ba9a.zip
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
Notes
Notes: svn path=/head/; revision=52647
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 e9ed2c75ee37..7a96d2b76075 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;