summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/hotplug.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-11-30 12:12:30 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 16:09:10 +0100
commitbbc81fd4327f9ed4480b05981e38acd48b1d184a (patch)
treeeac37c1c598418589bf70badacd9509b566cdecc /arch/arm/mach-tegra/hotplug.c
parentARM: CPU hotplug: move cpu_killed completion to core code (diff)
downloadlinux-bbc81fd4327f9ed4480b05981e38acd48b1d184a.tar.xz
linux-bbc81fd4327f9ed4480b05981e38acd48b1d184a.zip
ARM: CPU hotplug: remove bug checks in platform_cpu_die()
platform_cpu_die() is entered from the CPU's own idle thread, which can not be migrated to other CPUs. Moreover, the 'cpu' argument comes from the thread info, which will always be the 'current' CPU. So remove this useless bug check. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-tegra/hotplug.c')
-rw-r--r--arch/arm/mach-tegra/hotplug.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-tegra/hotplug.c b/arch/arm/mach-tegra/hotplug.c
index ecaa41ce4976..a5eeb9126645 100644
--- a/arch/arm/mach-tegra/hotplug.c
+++ b/arch/arm/mach-tegra/hotplug.c
@@ -101,16 +101,6 @@ int platform_cpu_kill(unsigned int cpu)
*/
void platform_cpu_die(unsigned int cpu)
{
-#ifdef DEBUG
- unsigned int this_cpu = hard_smp_processor_id();
-
- if (cpu != this_cpu) {
- printk(KERN_CRIT "Eek! platform_cpu_die running on %u, should be %u\n",
- this_cpu, cpu);
- BUG();
- }
-#endif
-
/*
* we're ready for shutdown now, so do it
*/