]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: tegra: remove tegra specific cpu_disable()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Apr 2013 17:04:09 +0000 (18:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Apr 2013 17:04:09 +0000 (18:04 +0100)
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: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-tegra/common.h
arch/arm/mach-tegra/hotplug.c
arch/arm/mach-tegra/platsmp.c

index 32f8eb3fe344958d395d89b17785b38f17f06673..5900cc44f780d33ab84434d3d4393643bab4e541 100644 (file)
@@ -2,4 +2,3 @@ extern struct smp_operations tegra_smp_ops;
 
 extern int tegra_cpu_kill(unsigned int cpu);
 extern void tegra_cpu_die(unsigned int cpu);
-extern int tegra_cpu_disable(unsigned int cpu);
index a599f6e36dea49768c6eb18d9550b3d04fb9c1db..1fb9915f7895107efbae6ae53cd8260e0d73e06b 100644 (file)
@@ -47,15 +47,6 @@ void __ref tegra_cpu_die(unsigned int cpu)
        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
 extern void tegra20_hotplug_shutdown(void);
 void __init tegra20_hotplug_init(void)
index 2c6b3d55213b49f16ee256548279b1742111bd20..ec33ec86aad901168a87b2d20a5782365b4c6c01 100644 (file)
@@ -192,6 +192,5 @@ struct smp_operations tegra_smp_ops __initdata = {
 #ifdef CONFIG_HOTPLUG_CPU
        .cpu_kill               = tegra_cpu_kill,
        .cpu_die                = tegra_cpu_die,
-       .cpu_disable            = tegra_cpu_disable,
 #endif
 };