diff options
| -rw-r--r-- | arch/x86/kernel/apic/apic_flat_64.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index fcce5a784c71..e84c9eb4e5b4 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
| @@ -85,12 +85,8 @@ flat_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector) | |||
| 85 | static void flat_send_IPI_allbutself(int vector) | 85 | static void flat_send_IPI_allbutself(int vector) |
| 86 | { | 86 | { |
| 87 | int cpu = smp_processor_id(); | 87 | int cpu = smp_processor_id(); |
| 88 | #ifdef CONFIG_HOTPLUG_CPU | 88 | |
| 89 | int hotplug = 1; | 89 | if (IS_ENABLED(CONFIG_HOTPLUG_CPU) || vector == NMI_VECTOR) { |
| 90 | #else | ||
| 91 | int hotplug = 0; | ||
| 92 | #endif | ||
| 93 | if (hotplug || vector == NMI_VECTOR) { | ||
| 94 | if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) { | 90 | if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) { |
| 95 | unsigned long mask = cpumask_bits(cpu_online_mask)[0]; | 91 | unsigned long mask = cpumask_bits(cpu_online_mask)[0]; |
| 96 | 92 | ||
