summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorVivian Wang <wangruikang@iscas.ac.cn>2025-11-18 07:19:22 +0300
committerPaul Walmsley <pjw@kernel.org>2025-11-19 19:19:27 +0300
commit8261a9d167e8b3007c0e830a1f7ab8c8b8c24b79 (patch)
treea19576dae7d2a9bb45ad600a72bf094af0e4ace9 /scripts/patch-kernel
parent1c7d491d8678ee056ee91de5cb14c9afa50175cb (diff)
downloadlinux-8261a9d167e8b3007c0e830a1f7ab8c8b8c24b79.tar.xz
riscv: hweight: Use riscv_has_extension_likely
Use riscv_has_extension_likely() to check for RISCV_ISA_EXT_ZBB, replacing the use of asm goto with ALTERNATIVE. The "likely" variant is used to match the behavior of the original implementation using ALTERNATIVE("j %l[legacy]", "nop", ...). Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Link: https://patch.msgid.link/20251020-riscv-altn-helper-wip-v4-3-ef941c87669a@iscas.ac.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions