ARM: 7694/1: ARM, TCM: initialize TCM in paging_init(), instead of setup_arch()
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Fri, 5 Apr 2013 02:16:51 +0000 (03:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 17 Apr 2013 15:53:24 +0000 (16:53 +0100)
commitde40614e92bf1b0308d953387b0cb9d3a5710186
tree79acdd36b82452be003f02db7621e88656fe0aa7
parentf5d6a1441a5045824f36ff7c6b6bbae0373472a6
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>
arch/arm/kernel/setup.c
arch/arm/kernel/tcm.c
arch/arm/kernel/tcm.h [deleted file]
arch/arm/mm/mmu.c
arch/arm/mm/tcm.h [new file with mode: 0644]