aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@bootlin.com>2025-05-23 09:58:15 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2025-05-25 15:00:23 +0200
commitab535361efdf8129dc593f8f2d80b76767c07813 (patch)
treea1d4bf633623896010d2c52b1edd970168c72f1d /arch/mips/kernel
parentmips: econet: Fix incorrect Kconfig dependencies (diff)
downloadwireguard-linux-ab535361efdf8129dc593f8f2d80b76767c07813.tar.xz
wireguard-linux-ab535361efdf8129dc593f8f2d80b76767c07813.zip
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 <gregory.clement@bootlin.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/smp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index 7901b59d8f60..4868e79f3b30 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -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);