diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-12-02 07:57:30 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-23 21:31:15 +1100 |
commit | ec0895f08f99515194e9fcfe1338becf6f759d38 (patch) | |
tree | 7cc3179bddb320ffaac953354f910a27f4bf939f /sound | |
parent | 654abc69ef2e69712e6d4e8a6cb9292b97a4aa39 (diff) | |
download | linux-ec0895f08f99515194e9fcfe1338becf6f759d38.tar.bz2 |
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
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions