Skip to content

Commit 386a746

Browse files
yeyunfeng-devctmarinas
authored andcommitted
arm64: mm: Use asid feature macro for cheanup
The commit 95b54c3 ("KVM: arm64: Add feature register flag definitions") introduce the ID_AA64MMFR0_ASID_8 and ID_AA64MMFR0_ASID_16 macros. We can use these macros for cheanup in get_cpu_asid_bits(). No functional change. Signed-off-by: Yunfeng Ye <[email protected]> Reviewed-by: Kefeng Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent a3a5b76 commit 386a746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/mm/context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ static u32 get_cpu_asid_bits(void)
5050
pr_warn("CPU%d: Unknown ASID size (%d); assuming 8-bit\n",
5151
smp_processor_id(), fld);
5252
fallthrough;
53-
case 0:
53+
case ID_AA64MMFR0_ASID_8:
5454
asid = 8;
5555
break;
56-
case 2:
56+
case ID_AA64MMFR0_ASID_16:
5757
asid = 16;
5858
}
5959

0 commit comments

Comments
 (0)