]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: Use asid feature macro for cheanup
authorYunfeng Ye <yeyunfeng@huawei.com>
Thu, 9 Dec 2021 01:46:03 +0000 (09:46 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 10 Dec 2021 18:24:20 +0000 (18:24 +0000)
commitc70919909ba6270af7ddfd86126fb161bdb06de4
tree1a1a0c2cb1d269dd7bea2a1b517a8da75b0f9fc5
parent90443ea2b86c5c5b187bc5c352aafeaa2c2b012f
arm64: mm: Use asid feature macro for cheanup

The commit ef25c51d09af ("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 <yeyunfeng@huawei.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Link: https://lore.kernel.org/r/f71c75d3-735e-b32a-8414-b3e513c77240@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/context.c