]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Sep 2018 16:27:24 +0000 (18:27 +0200)
commita66e13c07c795a97280a796e034103313360fc15
tree81572b0099e375518189f08c092b46f6f9da2d5f
parent000c4f68e5c85848dfaa344de8c058722e62bc59
irq/matrix: Split out the CPU selection code into a helper

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
kernel/irq/matrix.c