Skip to content

Commit 5289d30

Browse files
committed
Merge branch 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 apic cleanup from Ingo Molnar: "A single change simplifying the APIC code bit" * 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/apic: Remove local var in flat_send_IPI_allbutself()
2 parents af8c5e2 + 03dd604 commit 5289d30

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
@@ -85,12 +85,8 @@ flat_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector)
8585
static void flat_send_IPI_allbutself(int vector)
8686
{
8787
int cpu = smp_processor_id();
88-
#ifdef CONFIG_HOTPLUG_CPU
89-
int hotplug = 1;
90-
#else
91-
int hotplug = 0;
92-
#endif
93-
if (hotplug || vector == NMI_VECTOR) {
88+
89+
if (IS_ENABLED(CONFIG_HOTPLUG_CPU) || vector == NMI_VECTOR) {
9490
if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) {
9591
unsigned long mask = cpumask_bits(cpu_online_mask)[0];
9692

0 commit comments

Comments
 (0)