Messages in this thread | | | From | Linus Torvalds <> | Date | Tue, 10 Oct 2023 11:37:43 -0700 | Subject | Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() |
| |
On Tue, 10 Oct 2023 at 11:22, Uros Bizjak <ubizjak@gmail.com> wrote: > > Please note that besides propagation of the addition into address, the > patch also exposes memory load to the compiler, with the anticipation > that the compiler CSEs the load from this_cpu_off from eventual > multiple addresses. For this to work, we have to get rid of the asms.
I actually checked that the inline asm gets combined, the same way the this_cpu_read_stable cases do (which we use for 'current').
Linus
| |