diff options
author | Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au> | 2020-01-06 18:47:46 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-01-30 01:57:28 +0300 |
commit | ae4611f1d7e99eda6916bbc5fc8df26516edf95e (patch) | |
tree | d5fab11937c023158404e45c687edf686bfdefa8 /lib/locking-selftest-spin.h | |
parent | 1e58f4e1cb47de03988f8b14f07f6941acc7e669 (diff) | |
download | linux-ae4611f1d7e99eda6916bbc5fc8df26516edf95e.tar.xz |
PCI: Set resource size directly in adjust_bridge_window()
Change adjust_bridge_window() to set resource size directly instead of
using additional resource lists.
Because additional resource lists are optional resources, any algorithm
that requires guaranteed allocation that uses them cannot be guaranteed to
work.
Remove the resource from add_list, as a zero-sized additional resource is
redundant.
Update comment in pci_bus_distribute_available_resources() to reflect the
above changes.
Link: https://lore.kernel.org/r/PSXP216MB04386BA48874B56BC5CB0292803C0@PSXP216MB0438.KORP216.PROD.OUTLOOK.COM
Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'lib/locking-selftest-spin.h')
0 files changed, 0 insertions, 0 deletions