summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/mtk_iommu.h
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2019-11-04 08:01:06 +0100
committerJoerg Roedel <jroedel@suse.de>2019-11-11 15:02:34 +0100
commit1f4fd6248139b5406bb9cf1dde25dbec05f6c57e (patch)
tree82e075d510d0213d02e79061c221b47fc4af5333 /drivers/iommu/mtk_iommu.h
parentiommu/mediatek: Delete the leaf in the tlb_flush (diff)
downloadlinux-1f4fd6248139b5406bb9cf1dde25dbec05f6c57e.tar.xz
linux-1f4fd6248139b5406bb9cf1dde25dbec05f6c57e.zip
iommu/mediatek: Move the tlb_sync into tlb_flush
Right now, the tlb_add_flush_nosync and tlb_sync always appear together. we merge the two functions into one(also move the tlb_lock into the new function). No functional change. Signed-off-by: Chao Hao <chao.hao@mediatek.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r--drivers/iommu/mtk_iommu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index 8cae22de7663..ea949a324e33 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -57,7 +57,6 @@ struct mtk_iommu_data {
struct mtk_iommu_domain *m4u_dom;
struct iommu_group *m4u_group;
bool enable_4GB;
- bool tlb_flush_active;
spinlock_t tlb_lock; /* lock for tlb range flush */
struct iommu_device iommu;