diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-30 06:12:30 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-20 10:09:10 -0500 |
commit | bbc81fd4327f9ed4480b05981e38acd48b1d184a (patch) | |
tree | eac37c1c598418589bf70badacd9509b566cdecc /arch/arm/mach-ux500 | |
parent | 3c030beabf937b1d3b4ecaedfd1fb2f1e2aa0c70 (diff) |
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-ux500')
-rw-r--r-- | arch/arm/mach-ux500/hotplug.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-ux500/hotplug.c b/arch/arm/mach-ux500/hotplug.c index 7a4890b96e5c..dd8037ebccf8 100644 --- a/arch/arm/mach-ux500/hotplug.c +++ b/arch/arm/mach-ux500/hotplug.c | |||
@@ -45,16 +45,6 @@ int platform_cpu_kill(unsigned int cpu) | |||
45 | */ | 45 | */ |
46 | void platform_cpu_die(unsigned int cpu) | 46 | void platform_cpu_die(unsigned int cpu) |
47 | { | 47 | { |
48 | #ifdef DEBUG | ||
49 | unsigned int this_cpu = hard_smp_processor_id(); | ||
50 | |||
51 | if (cpu != this_cpu) { | ||
52 | printk(KERN_CRIT "Eek! platform_cpu_die running on %u, should be %u\n", | ||
53 | this_cpu, cpu); | ||
54 | BUG(); | ||
55 | } | ||
56 | #endif | ||
57 | |||
58 | /* directly enter low power state, skipping secure registers */ | 48 | /* directly enter low power state, skipping secure registers */ |
59 | platform_do_lowpower(cpu); | 49 | platform_do_lowpower(cpu); |
60 | } | 50 | } |