Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Remove the ubc_direct hack.



details:   https://anonhg.NetBSD.org/src/rev/65e7a34f7afc
branches:  trunk
changeset: 933222:65e7a34f7afc
user:      ad <ad%NetBSD.org@localhost>
date:      Fri May 22 19:46:29 2020 +0000

description:
Remove the ubc_direct hack.

diffstat:

 sys/uvm/uvm_glue.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (37 lines):

diff -r 6c50d1a7d490 -r 65e7a34f7afc sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Fri May 22 19:29:26 2020 +0000
+++ b/sys/uvm/uvm_glue.c        Fri May 22 19:46:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.178 2020/04/23 21:53:01 ad Exp $        */
+/*     $NetBSD: uvm_glue.c,v 1.179 2020/05/22 19:46:29 ad Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.178 2020/04/23 21:53:01 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.179 2020/05/22 19:46:29 ad Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_kstack.h"
@@ -504,18 +504,6 @@
        /* Start the freelist cache. */
        uvm_pgflcache_start();
 
-#ifdef PMAP_DIRECT
-       /*
-        * XXX Temporary ugly hack.  Just before boot, disable ubc_direct if
-        * there's more than a couple of CPUs, since it has concurrency
-        * problems.
-        */
-       if (ncpu > 2) {
-               extern bool ubc_direct;
-               ubc_direct = false;
-       }
-#endif
-
        for (;;) {
                /* Update legacy stats for post-mortem debugging. */
                uvm_update_uvmexp();



Home | Main Index | Thread Index | Old Index