diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-01-15 09:06:03 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:18 -0400 |
commit | 0893d3fb8d27320d4301f14a0b331df291a08044 (patch) | |
tree | 71126690cfaf4a5f1de4daa6fddfa25ce2184020 /arch/mips/include/asm | |
parent | 91119686f33928e2ced93eaedf4191cedbd0e827 (diff) |
MIPS: mm: init: Add free_init_pages() callback for EVA
A core in EVA mode can have any possible segment mapping, so the
default free_initmem_default() function may not always work as expected.
Therefore, add a callback that platforms can use to free up the init section.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/bootinfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h index 4d2cdea5aa37..83a4db4e3794 100644 --- a/arch/mips/include/asm/bootinfo.h +++ b/arch/mips/include/asm/bootinfo.h | |||
@@ -112,6 +112,8 @@ extern void prom_free_prom_memory(void); | |||
112 | extern void free_init_pages(const char *what, | 112 | extern void free_init_pages(const char *what, |
113 | unsigned long begin, unsigned long end); | 113 | unsigned long begin, unsigned long end); |
114 | 114 | ||
115 | extern void (*free_init_pages_eva)(void *begin, void *end); | ||
116 | |||
115 | /* | 117 | /* |
116 | * Initial kernel command line, usually setup by prom_init() | 118 | * Initial kernel command line, usually setup by prom_init() |
117 | */ | 119 | */ |