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

Commit eebadd67 authored by Magnus Damm's avatar Magnus Damm Committed by Simon Horman
Browse files

ARM: shmobile: Use sh73a0-specific cpu disable code



Convert the sh73a0 CPU Hotplug code to use a local
implementation of ->cpu_disable(). With this change
in place the sh73a0 SMP code does no longer depend
on hotplug.c.

Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 8bbcd729
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -124,6 +124,11 @@ static void sh73a0_cpu_die(unsigned int cpu)
	/* Enter shutdown mode */
	cpu_do_idle();
}

static int sh73a0_cpu_disable(unsigned int cpu)
{
	return 0; /* CPU0 and CPU1 supported */
}
#endif /* CONFIG_HOTPLUG_CPU */

struct smp_operations sh73a0_smp_ops __initdata = {
@@ -134,6 +139,6 @@ struct smp_operations sh73a0_smp_ops __initdata = {
#ifdef CONFIG_HOTPLUG_CPU
	.cpu_kill		= sh73a0_cpu_kill,
	.cpu_die		= sh73a0_cpu_die,
	.cpu_disable		= shmobile_cpu_disable_any,
	.cpu_disable		= sh73a0_cpu_disable,
#endif
};