Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/fdt Save 400KB of RAM by fixing a really dum...



details:   https://anonhg.NetBSD.org/src/rev/4abc8394a2ac
branches:  trunk
changeset: 1006765:4abc8394a2ac
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jan 27 01:15:09 2020 +0000

description:
Save 400KB of RAM by fixing a really dumb bug in sizing of the fdt memory
pool.

diffstat:

 sys/arch/evbarm/fdt/fdt_memory.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1bc76ac8b027 -r 4abc8394a2ac sys/arch/evbarm/fdt/fdt_memory.c
--- a/sys/arch/evbarm/fdt/fdt_memory.c  Mon Jan 27 00:51:40 2020 +0000
+++ b/sys/arch/evbarm/fdt/fdt_memory.c  Mon Jan 27 01:15:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_memory.c,v 1.3 2018/11/01 10:48:48 jmcneill Exp $ */
+/* $NetBSD: fdt_memory.c,v 1.4 2020/01/27 01:15:09 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "opt_bootconfig.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.3 2018/11/01 10:48:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_memory.c,v 1.4 2020/01/27 01:15:09 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -48,7 +48,7 @@
 static TAILQ_HEAD(fdt_memory_rangehead, fdt_memory_range) fdt_memory_ranges =
     TAILQ_HEAD_INITIALIZER(fdt_memory_ranges);
 
-static struct fdt_memory_range fdt_memory_range_pool[sizeof(struct fdt_memory_range) * DRAM_BLOCKS];
+static struct fdt_memory_range fdt_memory_range_pool[DRAM_BLOCKS];
 
 static struct fdt_memory_range *
 fdt_memory_range_alloc(void)



Home | Main Index | Thread Index | Old Index