Skip to content

Commit 90765f7

Browse files
willdeaconctmarinas
authored andcommitted
arm64: Update comment for ASID() macro
Commit 25b9269 ("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 <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent 25b9269 commit 90765f7

File tree

1 file changed

+3
-3
lines changed
  • arch/arm64/include/asm

1 file changed

+3
-3
lines changed

arch/arm64/include/asm/mmu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ typedef struct {
2323
} mm_context_t;
2424

2525
/*
26-
* This macro is only used by the TLBI code, which cannot race with an
27-
* ASID change and therefore doesn't need to reload the counter using
28-
* atomic64_read.
26+
* This macro is only used by the TLBI and low-level switch_mm() code,
27+
* neither of which can race with an ASID change. We therefore don't
28+
* need to reload the counter using atomic64_read().
2929
*/
3030
#define ASID(mm) ((mm)->context.id.counter & 0xffff)
3131

0 commit comments

Comments
 (0)