* [PATCH] MIPS: sibyte: remove no longer needed board_mem_region
@ 2023-03-15 13:45 Thomas Bogendoerfer
2023-03-17 10:22 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2023-03-15 13:45 UTC (permalink / raw)
To: linux-mips, linux-kernel
With the direct use of memblock interface board_mem_region is no
longer needed.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
arch/mips/sibyte/common/cfe.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/arch/mips/sibyte/common/cfe.c b/arch/mips/sibyte/common/cfe.c
index 1a504294d85f..2503f60271e8 100644
--- a/arch/mips/sibyte/common/cfe.c
+++ b/arch/mips/sibyte/common/cfe.c
@@ -35,11 +35,6 @@
#endif
#endif
-#define SIBYTE_MAX_MEM_REGIONS 8
-phys_addr_t board_mem_region_addrs[SIBYTE_MAX_MEM_REGIONS];
-phys_addr_t board_mem_region_sizes[SIBYTE_MAX_MEM_REGIONS];
-unsigned int board_mem_region_count;
-
int cfe_cons_handle;
#ifdef CONFIG_BLK_DEV_INITRD
@@ -141,16 +136,6 @@ static __init void prom_meminit(void)
size -= 512;
memblock_add(addr, size);
}
- board_mem_region_addrs[board_mem_region_count] = addr;
- board_mem_region_sizes[board_mem_region_count] = size;
- board_mem_region_count++;
- if (board_mem_region_count ==
- SIBYTE_MAX_MEM_REGIONS) {
- /*
- * Too many regions. Need to configure more
- */
- while(1);
- }
}
}
#ifdef CONFIG_BLK_DEV_INITRD
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: sibyte: remove no longer needed board_mem_region
2023-03-15 13:45 [PATCH] MIPS: sibyte: remove no longer needed board_mem_region Thomas Bogendoerfer
@ 2023-03-17 10:22 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2023-03-17 10:22 UTC (permalink / raw)
To: linux-mips, linux-kernel
On Wed, Mar 15, 2023 at 02:45:48PM +0100, Thomas Bogendoerfer wrote:
> With the direct use of memblock interface board_mem_region is no
> longer needed.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> ---
> arch/mips/sibyte/common/cfe.c | 15 ---------------
> 1 file changed, 15 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-17 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 13:45 [PATCH] MIPS: sibyte: remove no longer needed board_mem_region Thomas Bogendoerfer
2023-03-17 10:22 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®