提交 b335c0c9 编写于 作者: A Andrew Murray 提交者: Joseph Qi

iommu/arm-smmu-v3: Remove unnecessary wrapper function

commit 5e731073bc0a4a53a213412dbd33982d829560f1 upstream

Simplify the code by removing an unnecessary wrapper function.

This was left behind by commit 2f657add
("iommu/arm-smmu-v3: Specialise CMD_SYNC handling")
Signed-off-by: NAndrew Murray <andrew.murray@arm.com>
Reviewed-by: NRobin Murphy <robin.murphy@arm.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
Signed-off-by: NZou Cao <zoucao@linux.alibaba.com>
Reviewed-by: NBaoyou Xie <xie.baoyou@linux.alibaba.com>
上级 3587d7e5
...@@ -1398,15 +1398,11 @@ static irqreturn_t arm_smmu_combined_irq_handler(int irq, void *dev) ...@@ -1398,15 +1398,11 @@ static irqreturn_t arm_smmu_combined_irq_handler(int irq, void *dev)
} }
/* IO_PGTABLE API */ /* IO_PGTABLE API */
static void __arm_smmu_tlb_sync(struct arm_smmu_device *smmu)
{
arm_smmu_cmdq_issue_sync(smmu);
}
static void arm_smmu_tlb_sync(void *cookie) static void arm_smmu_tlb_sync(void *cookie)
{ {
struct arm_smmu_domain *smmu_domain = cookie; struct arm_smmu_domain *smmu_domain = cookie;
__arm_smmu_tlb_sync(smmu_domain->smmu);
arm_smmu_cmdq_issue_sync(smmu_domain->smmu);
} }
static void arm_smmu_tlb_inv_context(void *cookie) static void arm_smmu_tlb_inv_context(void *cookie)
...@@ -1431,7 +1427,7 @@ static void arm_smmu_tlb_inv_context(void *cookie) ...@@ -1431,7 +1427,7 @@ static void arm_smmu_tlb_inv_context(void *cookie)
* to guarantee those are observed before the TLBI. Do be careful, 007. * to guarantee those are observed before the TLBI. Do be careful, 007.
*/ */
arm_smmu_cmdq_issue_cmd(smmu, &cmd); arm_smmu_cmdq_issue_cmd(smmu, &cmd);
__arm_smmu_tlb_sync(smmu); arm_smmu_cmdq_issue_sync(smmu);
} }
static void arm_smmu_tlb_inv_range_nosync(unsigned long iova, size_t size, static void arm_smmu_tlb_inv_range_nosync(unsigned long iova, size_t size,
...@@ -1820,7 +1816,7 @@ static void arm_smmu_iotlb_sync(struct iommu_domain *domain) ...@@ -1820,7 +1816,7 @@ static void arm_smmu_iotlb_sync(struct iommu_domain *domain)
struct arm_smmu_device *smmu = to_smmu_domain(domain)->smmu; struct arm_smmu_device *smmu = to_smmu_domain(domain)->smmu;
if (smmu) if (smmu)
__arm_smmu_tlb_sync(smmu); arm_smmu_cmdq_issue_sync(smmu);
} }
static phys_addr_t static phys_addr_t
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册