summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/init.c
diff options
context:
space:
mode:
authorWang Long <long.wanglong@huawei.com>2015-07-27 04:32:53 +0200
committerWill Deacon <will.deacon@arm.com>2015-07-27 19:29:18 +0200
commit662ba3dbceca3ca284885a464ecb8c936f417003 (patch)
tree6940b9e358eba3119db2ea15bc3bc07d4c9b9ba1 /arch/arm64/mm/init.c
parentarm64: elf: use cpuid_feature_extract_field for hwcap detection (diff)
downloadlinux-662ba3dbceca3ca284885a464ecb8c936f417003.tar.xz
linux-662ba3dbceca3ca284885a464ecb8c936f417003.zip
arm64: mm: add __init section marker to free_initrd_mem
It is not needed after booting, this patch moves the free_initrd_mem() function to the __init section. This patch also make keep_initrd __initdata, to reduce kernel size. Signed-off-by: Wang Long <long.wanglong@huawei.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/init.c')
-rw-r--r--arch/arm64/mm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c
index ad87ce826cce..f5c0680d17d9 100644
--- a/arch/arm64/mm/init.c
+++ b/arch/arm64/mm/init.c
@@ -358,9 +358,9 @@ void free_initmem(void)
#ifdef CONFIG_BLK_DEV_INITRD
-static int keep_initrd;
+static int keep_initrd __initdata;
-void free_initrd_mem(unsigned long start, unsigned long end)
+void __init free_initrd_mem(unsigned long start, unsigned long end)
{
if (!keep_initrd)
free_reserved_area((void *)start, (void *)end, 0, "initrd");