mpt2sas: Rework the MSI-X grouping code
authorMartin K. Petersen <martin.petersen@oracle.com>
Sat, 4 Jan 2014 00:16:55 +0000 (19:16 -0500)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:16:58 +0000 (17:16 -0400)
commitcbbb7b31ad842e17b690254a546ddcedc79a4f05
tree903f4718dfa6002c05e615515d5e4321fdbe7124
parent9f21316fc2f297efd32b40a57083d5cecb4bda26
mpt2sas: Rework the MSI-X grouping code

On systems with a non power-of-two CPU count the existing MSI-X grouping
code failed to distribute interrupts correctly. Rework the code to
handle arbitrary processor counts.

Also remove the hardcoded upper limit on the number of processors so we
can boot on large systems.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Sreekanth Reddy <Sreekanth.reddy@avagotech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/mpt2sas/mpt2sas_base.c