]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: SMP: Move the AP sync point before the calibration delay
authorGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 23 May 2025 07:58:15 +0000 (09:58 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 25 May 2025 13:00:23 +0000 (15:00 +0200)
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 <gregory.clement@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/smp.c

index 7901b59d8f60eddefc020cf2a137716af963f09e..4868e79f3b30e9d80fe6390785b297c35d8c02a3 100644 (file)
@@ -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);