Only return the current cpu if it's in the cpumask
ClosedPublic

Authored by andrew on Thu, Aug 10, 5:08 PM.

Details

Summary

When we restrict the cpumask it probably means we are unable to
sent interrupts to CPUs outside the map. As such only return the
current CPU when it's within the mask otherwise return the first
valid CPU.

This is needed on ThunderX as, in a dual socket configuration, we
are unable to send MSI/MSI-X interrupts between sockets.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
andrew created this revision.Thu, Aug 10, 5:08 PM
This revision has a positive review.Fri, Aug 11, 11:24 AM
This revision was automatically updated to reflect the committed changes.