Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6d04612 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Gerrit - the friendly Code Review server
Browse files

arm64: smp: Update the topology masks before calling CPU_STARTING notifiers



Currently, the CPU_STARTING notifiers would observe an incorrect sibling
mask since the notifier chain is called before the topology masks are
updated for the new cpu.
Update the topology masks before calling the notifier chain to fix this
problem.

Change-Id: I3f698d777af3bb8e324019619b4c1c4de85e7b2c
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 1acad2bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -363,12 +363,12 @@ asmlinkage void secondary_start_kernel(void)
	if (smp_ops.smp_secondary_init)
		smp_ops.smp_secondary_init(cpu);

	smp_store_cpu_info(cpu);

	notify_cpu_starting(cpu);

	calibrate_delay();

	smp_store_cpu_info(cpu);

	/*
	 * OK, now it's safe to let the boot CPU continue.  Wait for
	 * the CPU migration code to notice that the CPU is online
+2 −2
Original line number Diff line number Diff line
@@ -171,10 +171,10 @@ asmlinkage void secondary_start_kernel(void)
	/*
	 * Enable GIC and timers.
	 */
	notify_cpu_starting(cpu);

	smp_store_cpu_info(cpu);

	notify_cpu_starting(cpu);

	/*
	 * OK, now it's safe to let the boot CPU continue.  Wait for
	 * the CPU migration code to notice that the CPU is online