]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: cpufeature: Use pre-defined ISA ext macros to index isa2hwcap
authorHui Wang <hui.wang@canonical.com>
Wed, 6 May 2026 13:21:52 +0000 (21:21 +0800)
committerPaul Walmsley <pjw@kernel.org>
Fri, 8 May 2026 01:38:38 +0000 (19:38 -0600)
commit41337097f2823e99478d7cbe68d4893582ed0b18
tree1475003e33a6fe5879cc0ffc753f15ac82bf4dc8
parentdb909bd7986c10da074917af3dae83a60fa65093
riscv: cpufeature: Use pre-defined ISA ext macros to index isa2hwcap

We have pre-defined ISA extension macros, here use those macros to
replace a magic number for isa2hwcap definition and some array
indexing for isa2hwcap access.

This doesn't change the original functionality, just improve the code
maintainability and readability.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://patch.msgid.link/20260506132152.53239-1-hui.wang@canonical.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/cpufeature.c