Skip to contentSkip to conversation

csky: Add setup_initrd check code

PATCH New [email protected] 1 participant 1 message Oct 8, 2019

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 csky: Add setup_initrd check code

From: Guo Ren <[email protected]>

We should give some necessary check for initrd just like other architectures and it seems that setup_initrd() could be a common code for all architectures.

---
 arch/csky/kernel/setup.c |  3 ---
 arch/csky/mm/init.c      | 44 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 3 deletions(-)
arch/csky/kernel/setup.c +0 -3
index 23ee604..a00f8a0 100644
@@ -47,9 +47,6 @@ static void __init csky_memblock_init(void)
 	signed long size;
 
 	memblock_reserve(__pa(_stext), _end - _stext);
-#ifdef CONFIG_BLK_DEV_INITRD
-	memblock_reserve(__pa(initrd_start), initrd_end - initrd_start);
-#endif
 
 	early_init_fdt_reserve_self();
 	early_init_fdt_scan_reserved_mem();
arch/csky/mm/init.c +44 -0

56 lines not on this page · raw message

Signature · 1 line
2.7.4