Commit ab535361 authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by Thomas Bogendoerfer
Browse files

MIPS: SMP: Move the AP sync point before the calibration delay



In the calibration delay process, some resources are shared, so it's
better to move it after the parallel execution part. Thanks to the
patch optimizing CPU delay calibration, this change has no impact on
the boot time improvements gained from CPU parallel boot.

Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 79ee1d20
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -371,12 +371,12 @@ asmlinkage void start_secondary(void)
	 * to an option instead of something based on .cputype
	 */

	calibrate_delay();
	cpu_data[cpu].udelay_val = loops_per_jiffy;

#ifdef CONFIG_HOTPLUG_PARALLEL
	cpuhp_ap_sync_alive();
#endif
	calibrate_delay();
	cpu_data[cpu].udelay_val = loops_per_jiffy;

	set_cpu_sibling_map(cpu);
	set_cpu_core_map(cpu);