diff options
| author | Xiao Wang <[email protected]> | 2024-03-13 09:19:29 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-05-22 23:12:55 +0000 |
| commit | 9850e73e82972f518b75dd0d94d2322f44d9191d (patch) | |
| tree | 9a51d20116015461923b0dd1fc8525ebe00655dc /net/unix/garbage.c | |
| parent | riscv: uaccess: Allow the last potential unrolled copy (diff) | |
| download | kernel-9850e73e82972f518b75dd0d94d2322f44d9191d.tar.gz kernel-9850e73e82972f518b75dd0d94d2322f44d9191d.zip | |
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: Xiao Wang <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
