diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-07-27 04:32:53 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-07-27 19:29:18 +0200 |
commit | 662ba3dbceca3ca284885a464ecb8c936f417003 (patch) | |
tree | 6940b9e358eba3119db2ea15bc3bc07d4c9b9ba1 /arch/arm64/mm/init.c | |
parent | arm64: elf: use cpuid_feature_extract_field for hwcap detection (diff) | |
download | linux-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.c | 4 |
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"); |