Skip to content

Commit 03dd604

Browse files
suryasaimadhuIngo Molnar
authored andcommitted
x86/apic: Remove local var in flat_send_IPI_allbutself()
No code changed: # arch/x86/kernel/apic/apic_flat_64.o: text data bss dec hex filename 1838 624 0 2462 99e apic_flat_64.o.before 1838 624 0 2462 99e apic_flat_64.o.after md5: aa2ae687d94bc4534f86ae6865dabd6a apic_flat_64.o.before.asm 42148da76ba8f9a236c33f8803bd2a6b apic_flat_64.o.after.asm md5 sum is different due to asm output offsets changing. Signed-off-by: Borislav Petkov <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 50c4c4e commit 03dd604

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/x86/kernel/apic/apic_flat_64.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,8 @@ flat_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector)
8484
static void flat_send_IPI_allbutself(int vector)
8585
{
8686
int cpu = smp_processor_id();
87-
#ifdef CONFIG_HOTPLUG_CPU
88-
int hotplug = 1;
89-
#else
90-
int hotplug = 0;
91-
#endif
92-
if (hotplug || vector == NMI_VECTOR) {
87+
88+
if (IS_ENABLED(CONFIG_HOTPLUG_CPU) || vector == NMI_VECTOR) {
9389
if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) {
9490
unsigned long mask = cpumask_bits(cpu_online_mask)[0];
9591

0 commit comments

Comments
 (0)