Skip to content
Commit 3412386b authored by Keith Busch's avatar Keith Busch Committed by Thomas Gleixner
Browse files

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: 7bf8222b

 ("irq/affinity: Fix CPU spread for unbalanced nodes")
Reported-by: default avatarXiaolong Ye <xiaolong.ye@intel.com>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Link: http://lkml.kernel.org/r/1492104492-19943-1-git-send-email-keith.busch@intel.com
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 7bf8222b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment