diff options
author | dg <dg@FreeBSD.org> | 1994-08-01 11:25:45 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-01 11:25:45 +0000 |
commit | 0e87163cbf8172e92cddba7c2aafcbde92386bca (patch) | |
tree | 1feaef790bf62d4d5a0238efdc5c6afb93a718c6 /sys/kern | |
parent | 4470f3d596cc20c7dc9a20846eecabe7d58f4a0b (diff) | |
download | FreeBSD-src-0e87163cbf8172e92cddba7c2aafcbde92386bca.zip FreeBSD-src-0e87163cbf8172e92cddba7c2aafcbde92386bca.tar.gz |
Removed all code related to the pagescan daemon, and changed 'act_count'
adjustments to compensate for a world without the pagescan daemon.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 19 | ||||
-rw-r--r-- | sys/kern/subr_trap.c | 4 |
2 files changed, 5 insertions, 18 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index f1fcc44..ea604ab 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -81,7 +81,7 @@ struct filedesc0 filedesc0; struct plimit limit0; struct vmspace vmspace0; struct proc *curproc = &proc0; -struct proc *initproc, *pageproc, *pagescanproc, *updateproc; +struct proc *initproc, *pageproc, *updateproc; int cmask = CMASK; extern struct user *proc0paddr; @@ -299,24 +299,9 @@ main(framep) vm_pageout(); /* NOTREACHED */ } -#if 1 - /* - * Start page scanner daemon (process 3). - */ - if (fork(p, (void *) NULL, rval)) - panic("failed fork page scanner daemon"); - if (rval[1]) { - p = curproc; - pagescanproc = p; - p->p_flag |= P_INMEM | P_SYSTEM; - bcopy("pagescan", p->p_comm, sizeof("pagescan")); - vm_pagescan(); - /*NOTREACHED*/ - } -#endif /* - * Start update daemon (process 4). + * Start update daemon (process 3). */ #ifndef LAPTOP if (fork(p, (void *) NULL, rval)) diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 8bfe85e..7084791 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.24 1994/05/25 08:55:18 rgrimes Exp $ + * $Id: trap.c,v 1.26 1994/06/11 05:13:33 davidg Exp $ */ /* @@ -408,6 +408,8 @@ trap_pfault(frame, usermode) *(volatile char *)v += 0; ptepg = (vm_page_t) pmap_pte_vm_page(vm_map_pmap(map), v); + if( ptepg->hold_count == 0) + ptepg->act_count += 3; vm_page_hold(ptepg); /* Fault in the user page: */ |