]> git.baikalelectronics.ru Git - kernel.git/commit
irq/affinity: Fix extra vecs calculation
authorKeith Busch <keith.busch@intel.com>
Thu, 13 Apr 2017 17:28:12 +0000 (13:28 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 13 Apr 2017 21:41:00 +0000 (23:41 +0200)
commit89edc2943176216de59c1836fd1c281a6954ad87
treeb793113aa115cb3779d9447f71f39ca6acb4f518
parente67ef7a29628563f67689d9047ead3e498074c47
irq/affinity: Fix extra vecs calculation

This fixes a math error calculating the extra_vecs. The error assumed
only 1 cpu per vector, but the value needs to account for the actual
number of cpus per vector in order to get the correct remainder for
extra CPU assignment.

Fixes: e67ef7a29628 ("irq/affinity: Fix CPU spread for unbalanced nodes")
Reported-by: Xiaolong Ye <xiaolong.ye@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Link: http://lkml.kernel.org/r/1492104492-19943-1-git-send-email-keith.busch@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/affinity.c