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

Commit b96d293b authored by Srinivas Ramana's avatar Srinivas Ramana
Browse files

msm: platsmp: 8939: Add cpu_disable call back to smp operations



Add cpu_disable call back to smp operations there by allowing
hotplug driver to offline any cpu.

Change-Id: Icef8a0219d1a68181b4b63b5fadc73522ccf9a43
Signed-off-by: default avatarSrinivas Ramana <sramana@codeaurora.org>
parent f8fa637b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -414,6 +414,11 @@ static void __init msm_platform_smp_prepare_cpus(unsigned int max_cpus)
		pr_warn("Failed to set CPU boot address\n");
}

int  msm_cpu_disable(unsigned int cpu)
{
	return 0; /* support hotplugging any cpu */
}

struct smp_operations arm_smp_ops __initdata = {
	.smp_init_cpus = arm_smp_init_cpus,
	.smp_prepare_cpus = msm_platform_smp_prepare_cpus,
@@ -466,6 +471,7 @@ struct smp_operations msm8960_smp_ops __initdata = {
#ifdef CONFIG_HOTPLUG
	.cpu_die = msm_cpu_die,
	.cpu_kill = msm_cpu_kill,
	.cpu_disable = msm_cpu_disable,
#endif
};