Skip to content

Commit cd8479c

Browse files
krishnareddy-dvwilldeacon
authored andcommitted
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 <[email protected]> Reviewed-by: Jon Hunter <[email protected]> Reviewed-by: Nicolin Chen <[email protected]> Reviewed-by: Pritesh Raithatha <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 49fbb25 commit cd8479c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/iommu/arm-smmu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
*/
5353
#define QCOM_DUMMY_VAL -1
5454

55-
#define TLB_LOOP_TIMEOUT 1000000 /* 1s! */
56-
#define TLB_SPIN_COUNT 10
57-
5855
#define MSI_IOVA_BASE 0x8000000
5956
#define MSI_IOVA_LENGTH 0x100000
6057

drivers/iommu/arm-smmu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ enum arm_smmu_cbar_type {
236236
/* Maximum number of context banks per SMMU */
237237
#define ARM_SMMU_MAX_CBS 128
238238

239+
#define TLB_LOOP_TIMEOUT 1000000 /* 1s! */
240+
#define TLB_SPIN_COUNT 10
239241

240242
/* Shared driver definitions */
241243
enum arm_smmu_arch_version {

0 commit comments

Comments
 (0)