Skip to content

Commit ff85f10

Browse files
zhangshkctmarinas
authored andcommitted
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]>
1 parent 79d82cb commit ff85f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/cpufeature.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ static void cpu_has_fwb(const struct arm64_cpu_capabilities *__unused)
17341734
u64 val = read_sysreg_s(SYS_CLIDR_EL1);
17351735

17361736
/* Check that CLIDR_EL1.LOU{U,IS} are both 0 */
1737-
WARN_ON(val & (7 << 27 | 7 << 21));
1737+
WARN_ON(CLIDR_LOUU(val) || CLIDR_LOUIS(val));
17381738
}
17391739

17401740
#ifdef CONFIG_ARM64_PAN

0 commit comments

Comments
 (0)