diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-06-14 13:06:06 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-10-11 01:47:08 +0300 |
commit | e3bdd2dd3f618d0bb9f500aae17df2b4f726dca1 (patch) | |
tree | dc6019767bac220825d18a645993165e021a78a8 /tools/perf/scripts/python/syscall-counts.py | |
parent | 9d3faf229c06d953999e2aa6b6dbb57afd252f26 (diff) | |
download | linux-e3bdd2dd3f618d0bb9f500aae17df2b4f726dca1.tar.xz |
PCI: Add ALIGN_DOWN_IF_NONZERO() helper
pci_bus_distribute_available_resources() performs alignment in case of
non-zero alignment requirement on three occasions.
Add ALIGN_DOWN_IF_NONZERO() helper to avoid coding the non-zero check three
times.
Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240614100606.15830-5-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions