Commit da2265b1 authored by Russell King's avatar Russell King

ARM: tegra: remove tegra specific cpu_disable()

The tegra cpu_disable() function is the same as the generic version
in arch/arm/kernel/smp.c.  Therefore, it can be removed.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 41ef2d56
...@@ -2,4 +2,3 @@ extern struct smp_operations tegra_smp_ops; ...@@ -2,4 +2,3 @@ extern struct smp_operations tegra_smp_ops;
extern int tegra_cpu_kill(unsigned int cpu); extern int tegra_cpu_kill(unsigned int cpu);
extern void tegra_cpu_die(unsigned int cpu); extern void tegra_cpu_die(unsigned int cpu);
extern int tegra_cpu_disable(unsigned int cpu);
...@@ -47,15 +47,6 @@ void __ref tegra_cpu_die(unsigned int cpu) ...@@ -47,15 +47,6 @@ void __ref tegra_cpu_die(unsigned int cpu)
BUG(); BUG();
} }
int tegra_cpu_disable(unsigned int cpu)
{
/*
* we don't allow CPU 0 to be shutdown (it is still too special
* e.g. clock tick interrupts)
*/
return cpu == 0 ? -EPERM : 0;
}
#ifdef CONFIG_ARCH_TEGRA_2x_SOC #ifdef CONFIG_ARCH_TEGRA_2x_SOC
extern void tegra20_hotplug_shutdown(void); extern void tegra20_hotplug_shutdown(void);
void __init tegra20_hotplug_init(void) void __init tegra20_hotplug_init(void)
......
...@@ -192,6 +192,5 @@ struct smp_operations tegra_smp_ops __initdata = { ...@@ -192,6 +192,5 @@ struct smp_operations tegra_smp_ops __initdata = {
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
.cpu_kill = tegra_cpu_kill, .cpu_kill = tegra_cpu_kill,
.cpu_die = tegra_cpu_die, .cpu_die = tegra_cpu_die,
.cpu_disable = tegra_cpu_disable,
#endif #endif
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment