]> 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)
commite6d4e274e49df48db177e5b86c657629fdfe17b8
treef61e43b7f70b9ad9c332b3b529604cdb86fed75c
parent57ff3649a023ed4e1d036e239eca763bff621b9b
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