Skip to content

Commit bd82dba

Browse files
committed
x86/apic: Add NMI_VECTOR wait to IPI shorthand
To support NMI shorthand broadcasts add the safe wait for ICR idle for NMI vector delivery. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 3994ff9 commit bd82dba

File tree

1 file changed

+4
-1
lines changed
  • arch/x86/kernel/apic

1 file changed

+4
-1
lines changed

arch/x86/kernel/apic/ipi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ void __default_send_IPI_shortcut(unsigned int shortcut, int vector)
3030
/*
3131
* Wait for idle.
3232
*/
33-
__xapic_wait_icr_idle();
33+
if (unlikely(vector == NMI_VECTOR))
34+
safe_apic_wait_icr_idle();
35+
else
36+
__xapic_wait_icr_idle();
3437

3538
/*
3639
* No need to touch the target chip field. Also the destination

0 commit comments

Comments
 (0)