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>
Bu işleme şunda yer alıyor:
Russell King
2010-11-30 11:12:30 +00:00
ebeveyn 3c030beabf
işleme bbc81fd432
5 değiştirilmiş dosya ile 0 ekleme ve 48 silme

Dosyayı Görüntüle

@@ -32,14 +32,6 @@ int platform_cpu_kill(unsigned int cpu)
*/
void platform_cpu_die(unsigned int cpu)
{
unsigned int this_cpu = hard_smp_processor_id();
if (cpu != this_cpu) {
pr_crit("platform_cpu_die running on %u, should be %u\n",
this_cpu, cpu);
BUG();
}
flush_cache_all();
dsb();