xen/resume: only send BITMAP IPIs if CPUs > 1
This is quite harmless on HEAD, but it's worse on stable/10 where lapic_ipi_vectored is the local APIC native IPI implementation. On stable/10 cpu_ops.ipi_vectored should be used instead. MFC after: 5 days Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
5d35d77707
commit
4ea0b4ad1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299423
@ -260,14 +260,14 @@ xctrl_suspend()
|
||||
gnttab_resume(NULL);
|
||||
|
||||
#ifdef SMP
|
||||
/* Send an IPI_BITMAP in case there are pending bitmap IPIs. */
|
||||
lapic_ipi_vectored(IPI_BITMAP_VECTOR, APIC_IPI_DEST_ALL);
|
||||
if (!CPU_EMPTY(&cpu_suspend_map)) {
|
||||
/*
|
||||
* Now that event channels have been initialized,
|
||||
* resume CPUs.
|
||||
*/
|
||||
resume_cpus(cpu_suspend_map);
|
||||
/* Send an IPI_BITMAP in case there are pending bitmap IPIs. */
|
||||
lapic_ipi_vectored(IPI_BITMAP_VECTOR, APIC_IPI_DEST_ALL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user