Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Switch aarch64 to use a single freelist.



details:   https://anonhg.NetBSD.org/src/rev/0e33368afc7f
branches:  trunk
changeset: 1006624:0e33368afc7f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Jan 21 10:54:11 2020 +0000

description:
Switch aarch64 to use a single freelist.

diffstat:

 sys/arch/aarch64/include/vmparam.h |  6 ++----
 sys/arch/evbarm/fdt/fdt_machdep.c  |  9 ++-------
 2 files changed, 4 insertions(+), 11 deletions(-)

diffs (51 lines):

diff -r e9522e9e89e1 -r 0e33368afc7f sys/arch/aarch64/include/vmparam.h
--- a/sys/arch/aarch64/include/vmparam.h        Tue Jan 21 08:50:54 2020 +0000
+++ b/sys/arch/aarch64/include/vmparam.h        Tue Jan 21 10:54:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.8 2018/10/28 10:18:34 jmcneill Exp $ */
+/* $NetBSD: vmparam.h,v 1.9 2020/01/21 10:54:11 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -165,10 +165,8 @@
 #define VM_PHYSSEG_MAX         64              /* XXX */
 #define VM_PHYSSEG_STRAT       VM_PSTRAT_BSEARCH
 
-#define VM_NFREELIST           3
+#define VM_NFREELIST           1
 #define VM_FREELIST_DEFAULT    0
-#define VM_FREELIST_FIRST4GB   1
-#define VM_FREELIST_HIGHMEM    2
 
 #elif defined(__arm__)
 
diff -r e9522e9e89e1 -r 0e33368afc7f sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Tue Jan 21 08:50:54 2020 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Tue Jan 21 10:54:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.65 2019/12/18 21:46:03 riastradh Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.66 2020/01/21 10:54:11 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.65 2019/12/18 21:46:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.66 2020/01/21 10:54:11 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_bootconfig.h"
@@ -271,11 +271,6 @@
        bp->bp_pages = atop(eaddr) - bp->bp_start;
        bp->bp_freelist = VM_FREELIST_DEFAULT;
 
-#ifdef _LP64
-       if (m->end > 0x100000000)
-               bp->bp_freelist = VM_FREELIST_HIGHMEM;
-#endif
-
 #ifdef PMAP_NEED_ALLOC_POOLPAGE
        const uint64_t memory_size = *(uint64_t *)arg;
        if (atop(memory_size) > bp->bp_pages) {



Home | Main Index | Thread Index | Old Index