mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
de40614e92
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>
18 lines
429 B
C
18 lines
429 B
C
/*
|
|
* 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
|