]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only return the current cpu if it's in the cpumask. When we restrict the
authorAndrew Turner <andrew@FreeBSD.org>
Fri, 11 Aug 2017 12:45:58 +0000 (12:45 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Fri, 11 Aug 2017 12:45:58 +0000 (12:45 +0000)
commita92a2f00b1a69506d4b1c97ca2d301f4036dd2c9
tree48350cde3a16ce4b6716bd2008a374ad9f5b6503
parentebf854802d83aa351bb3d54baa8d14446df4f0f7
Only return the current cpu if it's in the cpumask. 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.

Reviewed by: mmel
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11957
sys/kern/subr_intr.c