From: Alex Chiang Date: Mon, 9 Feb 2009 18:16:57 +0000 (-0700) Subject: [IA64] Remove redundant cpu_clear() in __cpu_disable path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0acdea21437eff134cc3486bdc52907d9086af1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [IA64] Remove redundant cpu_clear() in __cpu_disable path The second call to cpu_clear() is redundant, as we've already removed the CPU from cpu_online_map before calling migrate_platform_irqs(). Signed-off-by: Alex Chiang Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 2ec5bbff461e..52290547c85b 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c @@ -740,11 +740,10 @@ int __cpu_disable(void) if (migrate_platform_irqs(cpu)) { cpu_set(cpu, cpu_online_map); - return (-EBUSY); + return -EBUSY; } remove_siblinginfo(cpu); - cpu_clear(cpu, cpu_online_map); fixup_irqs(); local_flush_tlb_all(); cpu_clear(cpu, cpu_callin_map);