]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: msi cleanup hash usage
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 16 Apr 2013 12:05:47 +0000 (14:05 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:35 +0000 (14:07 +0200)
commit7a4fcdc24ca86a68f8368cb8c9eecf29084e514f
treef61e43b7f70b9ad9c332b3b529604cdb86fed75c
parent3a919b741e71bb76e3ffa1c7dd01222f8dc96774
s390/pci: msi cleanup hash usage

The hash used for mapping irq numbers to msi descriptors does not
utilize all buckets that were allocated. Fix this by using the same
value (computed by the number of bits used for the hash function) at
relevant places.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_msi.c