aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/powerpc-hcalls.py
diff options
context:
space:
mode:
authorLeonardo Bras <[email protected]>2021-08-17 03:39:25 -0300
committerMichael Ellerman <[email protected]>2021-08-27 00:56:55 +1000
commitfc8cba8f989fb98e496b33a78476861e246c42a0 (patch)
tree8895d02e03e6576a931a48fbaf4de360d772c981 /tools/perf/scripts/python/powerpc-hcalls.py
parent7ed2ed2db2685a285cb09ab330dc4efea0b64022 (diff)
powerpc/pseries/iommu: Reorganize iommu_table_setparms*() with new helper
Add a new helper _iommu_table_setparms(), and use it in iommu_table_setparms() and iommu_table_setparms_lpar() to avoid duplicated code. Also, setting tbl->it_ops was happening outsite iommu_table_setparms*(), so move it to the new helper. Since we need the iommu_table_ops to be declared before used, declare iommu_table_lpar_multi_ops and iommu_table_pseries_ops to before their respective iommu_table_setparms*(). Signed-off-by: Leonardo Bras <[email protected]> Reviewed-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions