diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2017-03-27 20:07:24 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-04-05 08:35:22 +0300 |
commit | b0c8ce897a42ab357001f275fa80ba82c8d4555f (patch) | |
tree | 855ec09f16d864a2bda0f45ba5a459761ec68f4d /arch/s390/pci/pci.c | |
parent | 4e0cca7d64b62b5974fa198acce0d3b476ca9914 (diff) | |
download | linux-b0c8ce897a42ab357001f275fa80ba82c8d4555f.tar.xz |
s390/pci: reduce iomap size (even more)
Commit c506fff3d3a8 ("s390/pci: resize iomap") reduced the iomap
to NR_FUNCTIONS * PCI_BAR_COUNT elements. Since we only support
functions with 64bit BARs we can cut that number in half.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci.c')
-rw-r--r-- | arch/s390/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index e6cb96a1171f..ba56b9d9c765 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -69,7 +69,7 @@ static struct airq_struct zpci_airq = { }; #define ZPCI_IOMAP_ENTRIES \ - min(((unsigned long) CONFIG_PCI_NR_FUNCTIONS * PCI_BAR_COUNT), \ + min(((unsigned long) ZPCI_NR_DEVICES * PCI_BAR_COUNT / 2), \ ZPCI_IOMAP_MAX_ENTRIES) static DEFINE_SPINLOCK(zpci_iomap_lock); |