irq/matrix: Split out the CPU selection code into a helper
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Sat, 8 Sep 2018 17:58:37 +0000 (01:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:58:45 +0000 (17:58 +0100)
commit2948b8875df4793bb4614284b862d8217c0ad346
treec4c0101a0edf798e25aeb56d32c73b9e620cbde4
parent51ea85abe794450e24352b970c33ed12f0e13a4c
irq/matrix: Split out the CPU selection code into a helper

[ Upstream commit 8ffe4e61c06a48324cfd97f1199bb9838acce2f2 ]

Linux finds the CPU which has the lowest vector allocation count to spread
out the non managed interrupts across the possible target CPUs, but does
not do so for managed interrupts.

Split out the CPU selection code into a helper function for reuse. No
functional change.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/20180908175838.14450-1-dou_liyang@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/matrix.c