Commit 1221ed10 authored by Russell King's avatar Russell King

ARM: cleanup early_paging_init() calling

Eliminate the needless nommu version of this function, and get rid of
the proc_info_list structure argument - we no longer need this in order
to fix up the page table entries.
Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
Tested-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d8dc7fbd
...@@ -75,8 +75,7 @@ __setup("fpe=", fpe_setup); ...@@ -75,8 +75,7 @@ __setup("fpe=", fpe_setup);
extern void init_default_cache_policy(unsigned long); extern void init_default_cache_policy(unsigned long);
extern void paging_init(const struct machine_desc *desc); extern void paging_init(const struct machine_desc *desc);
extern void early_paging_init(const struct machine_desc *, extern void early_paging_init(const struct machine_desc *);
struct proc_info_list *);
extern void sanity_check_meminfo(void); extern void sanity_check_meminfo(void);
extern enum reboot_mode reboot_mode; extern enum reboot_mode reboot_mode;
extern void setup_dma_zone(const struct machine_desc *desc); extern void setup_dma_zone(const struct machine_desc *desc);
...@@ -936,7 +935,9 @@ void __init setup_arch(char **cmdline_p) ...@@ -936,7 +935,9 @@ void __init setup_arch(char **cmdline_p)
parse_early_param(); parse_early_param();
early_paging_init(mdesc, lookup_processor_type(read_cpuid_id())); #ifdef CONFIG_MMU
early_paging_init(mdesc);
#endif
setup_dma_zone(mdesc); setup_dma_zone(mdesc);
sanity_check_meminfo(); sanity_check_meminfo();
arm_memblock_init(mdesc); arm_memblock_init(mdesc);
......
...@@ -1396,8 +1396,7 @@ pgtables_remap lpae_pgtables_remap_asm; ...@@ -1396,8 +1396,7 @@ pgtables_remap lpae_pgtables_remap_asm;
* early_paging_init() recreates boot time page table setup, allowing machines * early_paging_init() recreates boot time page table setup, allowing machines
* to switch over to a high (>4G) address space on LPAE systems * to switch over to a high (>4G) address space on LPAE systems
*/ */
void __init early_paging_init(const struct machine_desc *mdesc, void __init early_paging_init(const struct machine_desc *mdesc)
struct proc_info_list *procinfo)
{ {
pgtables_remap *lpae_pgtables_remap; pgtables_remap *lpae_pgtables_remap;
unsigned long pa_pgd; unsigned long pa_pgd;
...@@ -1465,8 +1464,7 @@ void __init early_paging_init(const struct machine_desc *mdesc, ...@@ -1465,8 +1464,7 @@ void __init early_paging_init(const struct machine_desc *mdesc,
#else #else
void __init early_paging_init(const struct machine_desc *mdesc, void __init early_paging_init(const struct machine_desc *mdesc)
struct proc_info_list *procinfo)
{ {
long long offset; long long offset;
......
...@@ -303,15 +303,6 @@ void __init sanity_check_meminfo(void) ...@@ -303,15 +303,6 @@ void __init sanity_check_meminfo(void)
memblock_set_current_limit(end); memblock_set_current_limit(end);
} }
/*
* early_paging_init() recreates boot time page table setup, allowing machines
* to switch over to a high (>4G) address space on LPAE systems
*/
void __init early_paging_init(const struct machine_desc *mdesc,
struct proc_info_list *procinfo)
{
}
/* /*
* paging_init() sets up the page tables, initialises the zone memory * paging_init() sets up the page tables, initialises the zone memory
* maps, and sets up the zero page, bad page and bad page tables. * maps, and sets up the zero page, bad page and bad page tables.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment