diff options
author | Leonardo Bras <[email protected]> | 2021-08-17 03:39:25 -0300 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-08-27 00:56:55 +1000 |
commit | fc8cba8f989fb98e496b33a78476861e246c42a0 (patch) | |
tree | 8895d02e03e6576a931a48fbaf4de360d772c981 /tools/perf/scripts/python/sched-migration.py | |
parent | 7ed2ed2db2685a285cb09ab330dc4efea0b64022 (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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions