[PATCH] ARM: put memblock stuff into init sections

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Dec 1 17:24:50 EST 2011


memblock is only used during early boot for ARM, so the function and
data can safely go into the init sections.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
 arch/arm/include/asm/memblock.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/memblock.h b/arch/arm/include/asm/memblock.h
index b8da2e4..6e937f7 100644
--- a/arch/arm/include/asm/memblock.h
+++ b/arch/arm/include/asm/memblock.h
@@ -1,6 +1,8 @@
 #ifndef _ASM_ARM_MEMBLOCK_H
 #define _ASM_ARM_MEMBLOCK_H
 
+#define ARCH_DISCARD_MEMBLOCK
+
 struct meminfo;
 struct machine_desc;
 
-- 
1.7.7.1




More information about the linux-arm-kernel mailing list