aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaokun Zhang <[email protected]>2021-07-16 13:58:09 +0800
committerCatalin Marinas <[email protected]>2021-07-30 16:21:47 +0100
commitff85f10ba8e4d3b4c6f8f5c9f6b47f3e80a067f1 (patch)
tree74927bf78862ed40d97e5c8c37981c5c3739a1ca
parent79d82cbcbb3d2a56c009ad6a6df92c5dee061dad (diff)
arm64: cpufeature: Use defined macro instead of magic numbers
Use defined macro to simplify the code and make it more readable. Cc: Marc Zyngier <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
-rw-r--r--arch/arm64/kernel/cpufeature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 0ead8bfedf20..2e4ec12667b3 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1734,7 +1734,7 @@ static void cpu_has_fwb(const struct arm64_cpu_capabilities *__unused)
u64 val = read_sysreg_s(SYS_CLIDR_EL1);
/* Check that CLIDR_EL1.LOU{U,IS} are both 0 */
- WARN_ON(val & (7 << 27 | 7 << 21));
+ WARN_ON(CLIDR_LOUU(val) || CLIDR_LOUIS(val));
}
#ifdef CONFIG_ARM64_PAN