aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMika Westerberg <[email protected]>2018-05-28 15:47:55 +0300
committerBjorn Helgaas <[email protected]>2018-06-04 12:08:06 -0500
commit14fe5951b667872154d753e451dea043050e9006 (patch)
tree642ec0c399b27ca86e4aa0a504b3c6d737bbe637 /tools/perf/scripts/python/export-to-postgresql.py
parent3374c545c27c5350b954d1ab03c880d5502e5eba (diff)
PCI: Move resource distribution for single bridge outside loop
If there is only a single bridge on the bus, we assign all resources to it. Currently this is done as a part of the resource distribution loop but it does not have to be there, and moving it outside actually improves readability because we can then save one indent level in the loop. While there we can add hotplug_bridges == 1 && normal_bridges == 0 to the same block because they are dealt the same way. Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions