Skip to content

Commit ab53536

Browse files
gclementtsbogend
authored andcommitted
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: Gregory CLEMENT <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 79ee1d2 commit ab53536

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/mips/kernel/smp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,12 @@ asmlinkage void start_secondary(void)
371371
* to an option instead of something based on .cputype
372372
*/
373373

374-
calibrate_delay();
375-
cpu_data[cpu].udelay_val = loops_per_jiffy;
376-
377374
#ifdef CONFIG_HOTPLUG_PARALLEL
378375
cpuhp_ap_sync_alive();
379376
#endif
377+
calibrate_delay();
378+
cpu_data[cpu].udelay_val = loops_per_jiffy;
379+
380380
set_cpu_sibling_map(cpu);
381381
set_cpu_core_map(cpu);
382382

0 commit comments

Comments
 (0)