summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2020-07-18 12:34:53 -0700
committerWill Deacon <will@kernel.org>2020-07-20 09:30:50 +0100
commitcd8479cf0de9d1950b51032a216fbf630f8542a4 (patch)
tree0dd43746009d2003ac8a5145bdd53849478b7284 /drivers/iommu/arm-smmu.c
parent49fbb25030265c660de732513f18275d88ff99d3 (diff)
downloadlinux-stable-cd8479cf0de9d1950b51032a216fbf630f8542a4.tar.gz
linux-stable-cd8479cf0de9d1950b51032a216fbf630f8542a4.tar.bz2
linux-stable-cd8479cf0de9d1950b51032a216fbf630f8542a4.zip
iommu/arm-smmu: move TLB timeout and spin count macros
Move TLB timeout and spin count macros to header file to allow using the same from vendor specific implementations. Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Nicolin Chen <nicoleotsuka@gmail.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> Link: https://lore.kernel.org/r/20200718193457.30046-2-vdumpa@nvidia.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 19f906de6420..cdd15ead9bc4 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -52,9 +52,6 @@
*/
#define QCOM_DUMMY_VAL -1
-#define TLB_LOOP_TIMEOUT 1000000 /* 1s! */
-#define TLB_SPIN_COUNT 10
-
#define MSI_IOVA_BASE 0x8000000
#define MSI_IOVA_LENGTH 0x100000