arm64: mm: add __init section marker to free_initrd_mem
authorWang Long <long.wanglong@huawei.com>
Mon, 27 Jul 2015 02:32:53 +0000 (03:32 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 17:29:18 +0000 (18:29 +0100)
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>
arch/arm64/mm/init.c

index ad87ce826cce45ec0ac710c4dc1b721d8aaa8f97..f5c0680d17d9efd701f7c261fd3a8b0210ad9d7a 100644 (file)
@@ -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");
This page took 0.025217 seconds and 5 git commands to generate.