Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/acorn26/acorn26 If we're treating the MEMC as a TLB...



details:   https://anonhg.NetBSD.org/src/rev/ea97b08ea920
branches:  trunk
changeset: 535383:ea97b08ea920
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Fri Aug 16 22:51:43 2002 +0000

description:
If we're treating the MEMC as a TLB, there's no need to completely reload
it in pmap_activate().  Instead, let's leave it empty and let pages be
faulted into it on demand.  This improves the context switch latency
somewhat, at least for small processes.

diffstat:

 sys/arch/acorn26/acorn26/pmap.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 4320df43f20f -r ea97b08ea920 sys/arch/acorn26/acorn26/pmap.c
--- a/sys/arch/acorn26/acorn26/pmap.c   Fri Aug 16 21:54:00 2002 +0000
+++ b/sys/arch/acorn26/acorn26/pmap.c   Fri Aug 16 22:51:43 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.4 2002/08/16 21:16:48 bjh21 Exp $ */
+/* $NetBSD: pmap.c,v 1.5 2002/08/16 22:51:43 bjh21 Exp $ */
 /*-
  * Copyright (c) 1997, 1998, 2000 Ben Harris
  * All rights reserved.
@@ -102,7 +102,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.4 2002/08/16 21:16:48 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2002/08/16 22:51:43 bjh21 Exp $");
 
 #include <sys/kernel.h> /* for cold */
 #include <sys/malloc.h>
@@ -424,7 +424,6 @@
 pmap_activate(struct proc *p)
 {
        pmap_t pmap;
-       int i;
        UVMHIST_FUNC("pmap_activate");
 
        UVMHIST_CALLED(pmaphist);
@@ -438,9 +437,6 @@
 
        active_pmap = pmap;
        pmap->pm_flags |= PM_ACTIVE;
-       for (i = 0; i < 1024; i++)
-               if (pmap->pm_entries[i] != NULL)
-                       MEMC_WRITE(pmap->pm_entries[i]->pv_activate);
 }
 
 void



Home | Main Index | Thread Index | Old Index