Skip to content

Commit

Permalink
[IA64] Remove redundant cpu_clear() in __cpu_disable path
Browse files Browse the repository at this point in the history
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 <achiang@hp.com>
Signed-off-by: Tony Luck <aegl@agluck-desktop.(none)>
  • Loading branch information
Alex Chiang authored and Tony Luck committed Feb 19, 2009
1 parent 66db2e6 commit c0acdea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/ia64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0acdea

Please sign in to comment.