RISC-V: Remove mem_end command line processing
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/5d44bf2065e169dd857a4207505210fce25743e6 Commit: 5d44bf2065e169dd857a4207505210fce25743e6 Parent: 3e076a7e049267e9c483674d0dd1caaca565dbef Refname: refs/heads/master Author: Palmer Dabbelt <[email protected]> AuthorDate: Sat Dec 16 11:17:16 2017 -0800 Committer: Palmer Dabbelt <[email protected]> CommitDate: Tue Jan 30 19:09:53 2018 -0800 RISC-V: Remove mem_end command line processing This is just some cruft left over from before the port converted to device tree. The right way to handle memory regions is to specify them in the device tree, which BBL (our simplest bootloader) is already capable of doing. This patch simply removes the cruft. Signed-off-by: Palmer Dabbelt <[email protected]> --- arch/riscv/kernel/setup.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index a548ccf48024..c6d095ff5ab8 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -149,25 +149,6 @@ void __init sbi_save(unsigned int hartid, void *dtb) early_init_dt_scan(__va(dtb)); } -/* - * Allow the user to manually add a memory region (in case DTS is broken); - * "mem_end=nn[KkMmGg]" - */ -static int __init mem_end_override(char *p) -{ - resource_size_t base, end; - - if (!p) - return -EINVAL; - base = (uintptr_t) __pa(PAGE_OFFSET); - end = memparse(p, &p) & PMD_MASK; - if (end == 0) - return -EINVAL; - memblock_add(base, end - base); - return 0; -} -early_param("mem_end", mem_end_override);