Re: [PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-12-02 Thread Christophe Leroy
On 11/28/2019 05:31 AM, Michael Ellerman wrote: Christophe Leroy writes: Le 22/11/2019 à 07:38, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: __get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data to th

Re: [PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-11-27 Thread Michael Ellerman
Christophe Leroy writes: > Le 22/11/2019 à 07:38, Michael Ellerman a écrit : >> Michael Ellerman writes: >>> Christophe Leroy writes: __get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data to the VDSO. By inlining this fun

Re: [PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-11-27 Thread Christophe Leroy
Hi Michael, Le 22/11/2019 à 07:38, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: __get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data to the VDSO. By inlining this function into its users, a bl/blr pair a

Re: [PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-11-21 Thread Michael Ellerman
Michael Ellerman writes: > Christophe Leroy writes: >> __get_datapage() is only a few instructions to retrieve the >> address of the page where the kernel stores data to the VDSO. >> >> By inlining this function into its users, a bl/blr pair and >> a mflr/mtlr pair is avoided, plus a few reg move

Re: [PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-11-21 Thread Michael Ellerman
Christophe Leroy writes: > __get_datapage() is only a few instructions to retrieve the > address of the page where the kernel stores data to the VDSO. > > By inlining this function into its users, a bl/blr pair and > a mflr/mtlr pair is avoided, plus a few reg moves. > > The improvement is noticea

[PATCH v3 4/8] powerpc/vdso32: inline __get_datapage()

2019-10-29 Thread Christophe Leroy
__get_datapage() is only a few instructions to retrieve the address of the page where the kernel stores data to the VDSO. By inlining this function into its users, a bl/blr pair and a mflr/mtlr pair is avoided, plus a few reg moves. The improvement is noticeable (about 55 nsec/call on an 8xx) vd