]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - arch/x86/kernel/apic/ipi.c
Merge tag 'x86_microcode_for_v6.7_rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[thirdparty/linux.git] / arch / x86 / kernel / apic / ipi.c
index 0078730a512e2b524753e06401bc6dbe2e0da93c..5da693d633b7801599cedddbd05c8cbb9689ac43 100644 (file)
@@ -97,6 +97,14 @@ sendmask:
        __apic_send_IPI_mask(mask, CALL_FUNCTION_VECTOR);
 }
 
+void apic_send_nmi_to_offline_cpu(unsigned int cpu)
+{
+       if (WARN_ON_ONCE(!apic->nmi_to_offline_cpu))
+               return;
+       if (WARN_ON_ONCE(!cpumask_test_cpu(cpu, &cpus_booted_once_mask)))
+               return;
+       apic->send_IPI(cpu, NMI_VECTOR);
+}
 #endif /* CONFIG_SMP */
 
 static inline int __prepare_ICR2(unsigned int mask)