[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <a0f1570686e4cb99025d0c0b571f07a84d6467d9.1579004658.git.michal.simek@xilinx.com>
Date: Tue, 14 Jan 2020 13:24:20 +0100
From: Michal Simek <michal.simek@...inx.com>
To: linux-kernel@...r.kernel.org, monstr@...str.eu,
michal.simek@...inx.com, git@...inx.com
Subject: [PATCH] microblaze: Kernel parameters should be parsed earlier
Kernel command line should be parsed before mmu_init is called to be able
to get for example cma sizes from command line. That's why call
parse_early_param() earlier in machine_early_init().
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
arch/microblaze/kernel/setup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c
index effed14eee06..34a082b17a01 100644
--- a/arch/microblaze/kernel/setup.c
+++ b/arch/microblaze/kernel/setup.c
@@ -54,7 +54,6 @@ void __init setup_arch(char **cmdline_p)
*cmdline_p = boot_command_line;
setup_memory();
- parse_early_param();
console_verbose();
@@ -177,6 +176,8 @@ void __init machine_early_init(const char *cmdline, unsigned int ram,
/* Initialize global data */
per_cpu(KM, 0) = 0x1; /* We start in kernel mode */
per_cpu(CURRENT_SAVE, 0) = (unsigned long)current;
+
+ parse_early_param();
}
void __init time_init(void)
--
2.24.0
Powered by blists - more mailing lists