[RFC v2 PATCH 0/16] Optimize this_cpu_*() ops for non-x86 (ARM64 for this series)

Christoph Lameter (Ampere) cl at gentwo.org
Tue Aug 4 09:19:28 PDT 2026


On Tue, 4 Aug 2026, Lorenzo Stoakes (ARM) wrote:

> Since this work seems to be very much arm64-focused, perhaps it's therefore
> worth looking at an alterative solution that's specific to the arch, like the
> one suggested by Mark ([1])?
>
> [0]:https://lore.kernel.org/all/CAHk-=wire3dzhHx=KiL_f5Rj0=1u9ustsa33QoR-F9-v-NU9Ng@mail.gmail.com/
> [1]:https://lore.kernel.org/linux-arm-kernel/al_DpFJFcmVhxpvW@J2N7QTR9R3/

Mark's solution does replace the preempt_enable/disable sections with a
rather hacky restart logic. It relies on a long preemable and postscript
to each per cpu operations.

 It does not remove the code entirely like the proposed patchset here and
cannot produce the same compact code as x86.





More information about the linux-arm-kernel mailing list