Skip to content
Unverified Commit 9850e73e authored by Xiao Wang's avatar Xiao Wang Committed by Palmer Dabbelt
Browse files

riscv: uaccess: Relax the threshold for fast path



The bytes copy for unaligned head would cover at most SZREG-1 bytes, so
it's better to set the threshold as >= (SZREG-1 + word_copy stride size)
which equals to 9*SZREG-1.

Signed-off-by: default avatarXiao Wang <xiao.w.wang@intel.com>
Reviewed-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240313091929.4029960-1-xiao.w.wang@intel.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent f1905946
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment