aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/mmu.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-02-28 12:43:55 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2020-02-28 13:39:03 +0000
commit90765f745b08fdf069e4562f6985bdba0fefad8d (patch)
tree66784dd2e4562796da4c4489389626e11bdac7ab /arch/arm64/include/asm/mmu.h
parentarm64: mm: convert cpu_do_switch_mm() to C (diff)
downloadlinux-dev-90765f745b08fdf069e4562f6985bdba0fefad8d.tar.xz
linux-dev-90765f745b08fdf069e4562f6985bdba0fefad8d.zip
arm64: Update comment for ASID() macro
Commit 25b92693a1b6 ("arm64: mm: convert cpu_do_switch_mm() to C") added a new use of the ASID() macro, so update the comment in asm/mmu.h which reasons about why an atomic reload of 'mm->context.id.counter' is not required. Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/mmu.h')
-rw-r--r--arch/arm64/include/asm/mmu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
index e4d862420bb4..21a4bcfdb378 100644
--- a/arch/arm64/include/asm/mmu.h
+++ b/arch/arm64/include/asm/mmu.h
@@ -23,9 +23,9 @@ typedef struct {
} mm_context_t;
/*
- * This macro is only used by the TLBI code, which cannot race with an
- * ASID change and therefore doesn't need to reload the counter using
- * atomic64_read.
+ * This macro is only used by the TLBI and low-level switch_mm() code,
+ * neither of which can race with an ASID change. We therefore don't
+ * need to reload the counter using atomic64_read().
*/
#define ASID(mm) ((mm)->context.id.counter & 0xffff)