Re: [RFC 0/7] x86/percpu: Use segment qualifiers

2019-07-22 Thread Peter Zijlstra
On Thu, Jul 18, 2019 at 10:41:03AM -0700, Nadav Amit wrote: > GCC 6+ supports segment qualifiers. Using them allows to implement > several optimizations: Overall I like this. Nice!

[RFC 0/7] x86/percpu: Use segment qualifiers

2019-07-18 Thread Nadav Amit
GCC 6+ supports segment qualifiers. Using them allows to implement several optimizations: 1. Avoid unnecessary instructions when an operation is carried on read/written per-cpu value, and instead allow the compiler to set instructions that access per-cpu value directly. 2. Make this_cpu_ptr() mor