[PATCH v5 3/8] arm64/runtime-const: Introduce runtime_const_mask_32()

Charlie Jenkins thecharlesjenkins at gmail.com
Fri Jul 10 00:52:39 PDT 2026


On Tue, 30 Jun 2026 04:55:26 +0000, K Prateek Nayak <kprateek.nayak at amd.com> wrote:
> Futex hash computation requires a mask operation with read-only after
> init data that will be converted to a runtime constant in the subsequent
> commit.
> 
> Introduce runtime_const_mask_32 to further optimize the mask operation
> in the futex hash computation hot path. Since all the current use-cases
> are of the form GENMASK(n, 0), with n > 0, a single:
> 
> [...]

Reviewed-by: Charlie Jenkins <thecharlesjenkins at gmail.com>
Tested-by: Charlie Jenkins <thecharlesjenkins at gmail.com>

-- 
- Charlie




More information about the linux-riscv mailing list