Skip to content

Commit c4a1f03

Browse files
wildea01jaustin
authored andcommitted
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: Will Deacon <will.deacon@arm.com>
1 parent 02ed1c7 commit c4a1f03

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/arm/kernel/smp.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *idle)
8787
* its stack and the page tables.
8888
*/
8989
secondary_data.stack = task_stack_page(idle) + THREAD_START_SP;
90+
#ifdef CONFIG_MMU
9091
secondary_data.pgdir = virt_to_phys(idmap_pgd);
9192
secondary_data.swapper_pg_dir = virt_to_phys(swapper_pg_dir);
93+
#endif
9294
__cpuc_flush_dcache_area(&secondary_data, sizeof(secondary_data));
9395
outer_clean_range(__pa(&secondary_data), __pa(&secondary_data + 1));
9496

0 commit comments

Comments
 (0)