|
8 | 8 | DEFINE_STATIC_KEY_FALSE(apic_use_ipi_shorthand);
|
9 | 9 |
|
10 | 10 | #ifdef CONFIG_SMP
|
11 |
| -#ifdef CONFIG_HOTPLUG_CPU |
12 |
| -#define DEFAULT_SEND_IPI (1) |
13 |
| -#else |
14 |
| -#define DEFAULT_SEND_IPI (0) |
15 |
| -#endif |
16 |
| - |
17 |
| -static int apic_ipi_shorthand_off __ro_after_init = DEFAULT_SEND_IPI; |
| 11 | +static int apic_ipi_shorthand_off __ro_after_init; |
18 | 12 |
|
19 | 13 | static __init int apic_ipi_shorthand(char *str)
|
20 | 14 | {
|
@@ -293,27 +287,12 @@ void default_send_IPI_mask_logical(const struct cpumask *cpumask, int vector)
|
293 | 287 |
|
294 | 288 | void default_send_IPI_allbutself(int vector)
|
295 | 289 | {
|
296 |
| - /* |
297 |
| - * if there are no other CPUs in the system then we get an APIC send |
298 |
| - * error if we try to broadcast, thus avoid sending IPIs in this case. |
299 |
| - */ |
300 |
| - if (num_online_cpus() < 2) |
301 |
| - return; |
302 |
| - |
303 |
| - if (apic_ipi_shorthand_off || vector == NMI_VECTOR) { |
304 |
| - apic->send_IPI_mask_allbutself(cpu_online_mask, vector); |
305 |
| - } else { |
306 |
| - __default_send_IPI_shortcut(APIC_DEST_ALLBUT, vector); |
307 |
| - } |
| 290 | + __default_send_IPI_shortcut(APIC_DEST_ALLBUT, vector); |
308 | 291 | }
|
309 | 292 |
|
310 | 293 | void default_send_IPI_all(int vector)
|
311 | 294 | {
|
312 |
| - if (apic_ipi_shorthand_off || vector == NMI_VECTOR) { |
313 |
| - apic->send_IPI_mask(cpu_online_mask, vector); |
314 |
| - } else { |
315 |
| - __default_send_IPI_shortcut(APIC_DEST_ALLINC, vector); |
316 |
| - } |
| 295 | + __default_send_IPI_shortcut(APIC_DEST_ALLINC, vector); |
317 | 296 | }
|
318 | 297 |
|
319 | 298 | void default_send_IPI_self(int vector)
|
|
0 commit comments