summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/tcm.h
diff options
context:
space:
mode:
authorJoonsoo Kim2013-04-05 04:16:51 +0200
committerRussell King2013-04-17 17:53:24 +0200
commitde40614e92bf1b0308d953387b0cb9d3a5710186 (patch)
tree79acdd36b82452be003f02db7621e88656fe0aa7 /arch/arm/kernel/tcm.h
parentARM: 7692/1: iop3xx: move IOP3XX_PERIPHERAL_VIRT_BASE (diff)
downloadkernel-qcow2-linux-de40614e92bf1b0308d953387b0cb9d3a5710186.tar.gz
kernel-qcow2-linux-de40614e92bf1b0308d953387b0cb9d3a5710186.tar.xz
kernel-qcow2-linux-de40614e92bf1b0308d953387b0cb9d3a5710186.zip
ARM: 7694/1: ARM, TCM: initialize TCM in paging_init(), instead of setup_arch()
tcm_init() call iotable_init() and it use early_alloc variants which do memblock allocation. Directly using memblock allocation after initializing bootmem should not permitted, because bootmem can't know where are additinally reserved. So move tcm_init() to a safe place before initalizing bootmem. (On the U300) Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/tcm.h')
-rw-r--r--arch/arm/kernel/tcm.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/kernel/tcm.h b/arch/arm/kernel/tcm.h
deleted file mode 100644
index 8015ad434a40..000000000000
--- a/arch/arm/kernel/tcm.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (C) 2008-2009 ST-Ericsson AB
- * License terms: GNU General Public License (GPL) version 2
- * TCM memory handling for ARM systems
- *
- * Author: Linus Walleij <linus.walleij@stericsson.com>
- * Author: Rickard Andersson <rickard.andersson@stericsson.com>
- */
-
-#ifdef CONFIG_HAVE_TCM
-void __init tcm_init(void);
-#else
-/* No TCM support, just blank inlines to be optimized out */
-inline void tcm_init(void)
-{
-}
-#endif