Re: [PATCH] x86/percpu: Introduce const-qualified const_pcpu_hot

From: Nadav Amit
Date: Sat Oct 21 2023 - 10:31:29 EST




> On Oct 20, 2023, at 7:19 PM, Uros Bizjak <ubizjak@xxxxxxxxx> wrote:
>
> By implementing constant-qualified const_pcpu_hot, the compiler can
> eliminate redundant reads from the constant variables, reducing the
> number of loads from current_task from 3766 to 3217 on a test build,
> a -14.6% reduction.

Thanks again for doing that. LGTM! [*]

--

[*] The negative sign here is unneeded, but that’s just me being
negative. ;-)