iommu/arm-smmu: fix incorrect comment regarding TLB invalidation
authorWill Deacon <will.deacon@arm.com>
Wed, 26 Feb 2014 11:14:37 +0000 (11:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 27 Feb 2014 19:08:43 +0000 (19:08 +0000)
Commit 1463fe44fd0f ("iommu/arm-smmu: Don't use VMIDs for stage-1
translations") moved our TLB invalidation from context creation time to
context destruction time, but forgot to update an associated comment.

This patch fixes the broken comment.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c

index 1da5b41afc3110532a1583885057704f334510b9..8b89e33a89fe99057d99e322ce2c287b41c0eb2f 100644 (file)
@@ -1026,9 +1026,8 @@ static void arm_smmu_free_pgtables(struct arm_smmu_domain *smmu_domain)
 
        /*
         * Recursively free the page tables for this domain. We don't
-        * care about speculative TLB filling, because the TLB will be
-        * nuked next time this context bank is re-allocated and no devices
-        * currently map to these tables.
+        * care about speculative TLB filling because the tables should
+        * not be active in any context bank at this point (SCTLR.M is 0).
         */
        pgd = pgd_base;
        for (i = 0; i < PTRS_PER_PGD; ++i) {