diff options
author | Suravee Suthikulpanit <[email protected]> | 2024-02-05 11:56:01 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-02-09 13:16:22 +0100 |
commit | 6f35fe5d8a0ad0125c52fb20f5d67000e369eb3a (patch) | |
tree | b3f4d0d86e5c73049bfbf4563b82565b61bfe9e5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8e017973317235468a330aa197134c1aebbf13da (diff) |
iommu/amd: Introduce get_amd_iommu_from_dev()
Introduce get_amd_iommu_from_dev() and get_amd_iommu_from_dev_data().
And replace rlookup_amd_iommu() with the new helper function where
applicable to avoid unnecessary loop to look up struct amd_iommu from
struct device.
Suggested-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions