diff options
author | Suravee Suthikulpanit <[email protected]> | 2022-08-25 06:39:34 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-09-07 16:12:34 +0200 |
commit | 43312b710b11a085ec81eb7d1878f8858045ae2b (patch) | |
tree | 6cc508f9c120c8adb0231c42b8f7130d17aee829 /lib/mpi/mpi-sub-ui.c | |
parent | 6b080c4e815ceba3c08ffa980c858595c07e786a (diff) |
iommu/amd: Refactor amd_iommu_domain_enable_v2 to remove locking
The current function to enable IOMMU v2 also lock the domain.
In order to reuse the same code in different code path, in which
the domain has already been locked, refactor the function to separate
the locking from the enabling logic.
Co-developed-by: Vasant Hegde <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions