Re: [RFC PATCH 3/8] powerpc/64s: put the per-cpu data_offset in r14

2017-12-22 Thread Nicholas Piggin
On Wed, 20 Dec 2017 18:53:24 +0100 Gabriel Paubert wrote: > On Thu, Dec 21, 2017 at 12:52:01AM +1000, Nicholas Piggin wrote: > > Shifted left by 16 bits, so the low 16 bits of r14 remain available. > > This allows per-cpu pointers to be dereferenced with a single extra > > shift whereas previousl

Re: [RFC PATCH 3/8] powerpc/64s: put the per-cpu data_offset in r14

2017-12-20 Thread Gabriel Paubert
On Thu, Dec 21, 2017 at 12:52:01AM +1000, Nicholas Piggin wrote: > Shifted left by 16 bits, so the low 16 bits of r14 remain available. > This allows per-cpu pointers to be dereferenced with a single extra > shift whereas previously it was a load and add. > --- > arch/powerpc/include/asm/paca.h

[RFC PATCH 3/8] powerpc/64s: put the per-cpu data_offset in r14

2017-12-20 Thread Nicholas Piggin
Shifted left by 16 bits, so the low 16 bits of r14 remain available. This allows per-cpu pointers to be dereferenced with a single extra shift whereas previously it was a load and add. --- arch/powerpc/include/asm/paca.h | 5 + arch/powerpc/include/asm/percpu.h | 2 +- arch/powerpc/kernel/