diff options
author | Thomas Gleixner <[email protected]> | 2021-12-06 23:51:52 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2021-12-16 22:22:20 +0100 |
commit | cd6cf06590b9792340dceaa285138777f3cc4d90 (patch) | |
tree | 7012825c2c5947ddc13516012f5d4bfb77f4487a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bf5e758f02fc739589dcc6a3395c3a3eb77b5c90 (diff) |
genirq/msi: Convert storage to xarray
The current linked list storage for MSI descriptors is suboptimal in
several ways:
1) Looking up a MSI desciptor requires a O(n) list walk in the worst case
2) The upcoming support of runtime expansion of MSI-X vectors would need
to do a full list walk to figure out whether a particular index is
already associated.
3) Runtime expansion of sparse allocations is even more complex as the
current implementation assumes an ordered list (increasing MSI index).
Use an xarray which solves all of the above problems nicely.
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Michael Kelley <[email protected]>
Tested-by: Nishanth Menon <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions