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

Commit 5309bdac authored by Yong Zhang's avatar Yong Zhang Committed by Ralf Baechle
Browse files

MIPS: call ->smp_finish() a little late



We have move irq enable to ->smp_finish. Place ->smp_finish() a little
late to prepare for move set_cpu_online() into start_secondary.
And it's not necessary to call cpu_set(cpu, cpu_callin_map) and
synchronise_count_slave() with irq enabled.

Signed-off-by: default avatarYong Zhang <yong.zhang0@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: David Daney <david.daney@cavium.com>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
Patchwork: https://patchwork.linux-mips.org/patch/3850/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 263afbdd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -122,13 +122,14 @@ asmlinkage __cpuinit void start_secondary(void)

	notify_cpu_starting(cpu);

	mp_ops->smp_finish();
	set_cpu_sibling_map(cpu);

	cpu_set(cpu, cpu_callin_map);

	synchronise_count_slave();

	mp_ops->smp_finish();

	cpu_idle();
}