mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
arm: support very early callback into board functions
Due to changes of the order of initialization of the ARM-specfic memory management code in 3.0, it is necessary to create a way to call platform specific code earlier than is currently possible. Change-Id: I77dae10c85085358f7240889a50b78b07d5af6d1 Signed-off-by: Larry Bassel <lbassel@codeaurora.org> (cherry picked from commit f81fb5655af9aaf573cb11b9a64e0a826fa580e2) Conflicts: arch/arm/kernel/setup.c
This commit is contained in:
parent
2b50aa3639
commit
0672ddbaee
2 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@ struct machine_desc {
|
|||
struct meminfo *);
|
||||
void (*reserve)(void);/* reserve mem blocks */
|
||||
void (*map_io)(void);/* IO mapping function */
|
||||
void (*init_very_early)(void);
|
||||
void (*init_early)(void);
|
||||
void (*init_irq)(void);
|
||||
struct sys_timer *timer; /* system tick timer */
|
||||
|
|
|
@ -961,6 +961,9 @@ void __init setup_arch(char **cmdline_p)
|
|||
|
||||
parse_early_param();
|
||||
|
||||
if (mdesc->init_very_early)
|
||||
mdesc->init_very_early();
|
||||
|
||||
sort(&meminfo.bank, meminfo.nr_banks, sizeof(meminfo.bank[0]), meminfo_cmp, NULL);
|
||||
sanity_check_meminfo();
|
||||
arm_memblock_init(&meminfo, mdesc);
|
||||
|
|
Loading…
Reference in a new issue