summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndy Chiu <tchiu@tenstorrent.com>2026-10-05 19:02:55 -0600
committerPaul Walmsley <pjw@kernel.org>2026-10-07 20:40:42 -0600
commit30514aa420fd8be54b67e8f940699f636d24ab8d (patch)
tree3ab774e12d9f83cc117d1f45f782747cedd87abe /include/linux
parent396d73f7b3d417be074b70236fd30088c7cf4022 (diff)
riscv: optmize ucopy for has_fast_unaligned_accesses
Skipping the software aligning code increases the ucopy bandwidth by up to 11.4%. Commit b94cec5761d2 ("riscv: skip software algning code for HAVE_EFFICIENT_UNALIGNED_ACCESS") provides this optimization at compile time, which depends on NONPORTABLE. This patch extends it such that the optimization can be enabled at runtime, after the unaligned access speed is resolved. To do so, we utilize the assembly version of static key and connect it to fast_unaligned_access_speed_key. The kernel jumps to the software aligning code as the default behavior, then the jump is optimized to an nop if the platform supports native misaligned access. Signed-off-by: Andy Chiu <tchiu@tenstorrent.com> Link: https://patch.msgid.link/20260911182402.1434257-3-tchiu@tenstorrent.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions