-
- Downloads
powerpc/vdso32: inline __get_datapage()
__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) vdsotest before the patch: gettimeofday: vdso: 731 nsec/call clock-gettime-realtime-coarse: vdso: 668 nsec/call clock-gettime-monotonic-coarse: vdso: 745 nsec/call vdsotest after the patch: gettimeofday: vdso: 677 nsec/call clock-gettime-realtime-coarse: vdso: 613 nsec/call clock-gettime-monotonic-coarse: vdso: 690 nsec/call Signed-off-by:Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/c39ef7f3dfa25356b01e211d539671f279086c09.1575273217.git.christophe.leroy@c-s.fr
Showing
- arch/powerpc/include/asm/vdso_datapage.h 10 additions, 0 deletionsarch/powerpc/include/asm/vdso_datapage.h
- arch/powerpc/kernel/vdso32/cacheflush.S 4 additions, 5 deletionsarch/powerpc/kernel/vdso32/cacheflush.S
- arch/powerpc/kernel/vdso32/datapage.S 3 additions, 25 deletionsarch/powerpc/kernel/vdso32/datapage.S
- arch/powerpc/kernel/vdso32/gettimeofday.S 5 additions, 7 deletionsarch/powerpc/kernel/vdso32/gettimeofday.S
Loading
Please register or sign in to comment