]> asedeno.scripts.mit.edu Git - linux.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)
commit8ffe4e61c06a48324cfd97f1199bb9838acce2f2
tree81572b0099e375518189f08c092b46f6f9da2d5f
parent7876320f88802b22d4e2daf7eb027dd14175a0f8
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