summaryrefslogtreecommitdiff
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorVivian Wang <wangruikang@iscas.ac.cn>2025-11-17 21:19:21 -0700
committerPaul Walmsley <pjw@kernel.org>2025-11-19 09:19:27 -0700
commit0a067ae21bf26e245f2687ef24cfb7302393a8a0 (patch)
tree25aa996eef95c6f232d46debfdabd289fffa71ef /lib/test_bitmap.c
parentc9a71610448843b6178375547627b2272f0d6193 (diff)
riscv: pgtable: Use riscv_has_extension_unlikely
Use riscv_has_extension_unlikely() to check for RISCV_ISA_EXT_SVVPTC, replacing the use of asm goto with ALTERNATIVE. The "unlikely" variant is used to match the behavior of the original implementation using ALTERNATIVE("nop", "j %l[svvptc]", ...). Note that this makes the check for RISCV_ISA_EXT_SVVPTC a runtime one if RISCV_ALTERNATIVE=n, but it should still be worthwhile to do so given that TLB flushes are relatively slow. Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Link: https://patch.msgid.link/20251020-riscv-altn-helper-wip-v4-1-ef941c87669a@iscas.ac.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions