Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4a1f032 authored by Will Deacon's avatar Will Deacon Committed by Jonathan Austin
Browse files

ARM: nommu: do not initialise page tables in secondary_data structure



nommu systems do not require any page tables, so don't try to initialise
them when bringing up secondary cores.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 02ed1c7b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -87,8 +87,10 @@ int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *idle)
	 * its stack and the page tables.
	 */
	secondary_data.stack = task_stack_page(idle) + THREAD_START_SP;
#ifdef CONFIG_MMU
	secondary_data.pgdir = virt_to_phys(idmap_pgd);
	secondary_data.swapper_pg_dir = virt_to_phys(swapper_pg_dir);
#endif
	__cpuc_flush_dcache_area(&secondary_data, sizeof(secondary_data));
	outer_clean_range(__pa(&secondary_data), __pa(&secondary_data + 1));