]> Git Repo - J-linux.git/commitdiff
Merge patch series "riscv: access_ok() optimization"
authorPalmer Dabbelt <[email protected]>
Thu, 16 May 2024 20:00:00 +0000 (13:00 -0700)
committerPalmer Dabbelt <[email protected]>
Wed, 22 May 2024 23:12:47 +0000 (16:12 -0700)
Samuel Holland <[email protected]> says:

This series optimizes access_ok() by defining TASK_SIZE_MAX. At Alex's
suggestion, I also tried making TASK_SIZE constant (specifically by
making PGDIR_SHIFT a variable instead of a ternary expression, then
replacing the load with an immediate using ALTERNATIVE). This appeared
to slightly improve performance on some implementations (C906) but
regressed it on others (FU740). So I am leaving further optimizations to
a later series.

* b4-shazam-merge:
  riscv: Define TASK_SIZE_MAX for __access_ok()
  riscv: Remove PGDIR_SIZE_L3 and TASK_SIZE_MIN

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
1  2 
arch/riscv/include/asm/pgtable.h

Simple merge
This page took 0.049752 seconds and 4 git commands to generate.