hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/arch/x86/kernel/smpboot.c
....@@ -258,7 +258,7 @@
258258 x86_platform.nmi_init();
259259
260260 /* enable local interrupts */
261
- local_irq_enable();
261
+ local_irq_enable_full();
262262
263263 x86_cpuinit.setup_percpu_clockev();
264264
....@@ -1133,7 +1133,6 @@
11331133 {
11341134 int apicid = apic->cpu_present_to_apicid(cpu);
11351135 int cpu0_nmi_registered = 0;
1136
- unsigned long flags;
11371136 int err, ret = 0;
11381137
11391138 lockdep_assert_irqs_enabled();
....@@ -1184,9 +1183,9 @@
11841183 * Check TSC synchronization with the AP (keep irqs disabled
11851184 * while doing so):
11861185 */
1187
- local_irq_save(flags);
1186
+ local_irq_disable_full();
11881187 check_tsc_sync_source(cpu);
1189
- local_irq_restore(flags);
1188
+ local_irq_enable_full();
11901189
11911190 while (!cpu_online(cpu)) {
11921191 cpu_relax();
....@@ -1654,7 +1653,7 @@
16541653 /*
16551654 * With physical CPU hotplug, we should halt the cpu
16561655 */
1657
- local_irq_disable();
1656
+ local_irq_disable_full();
16581657 }
16591658
16601659 /**