mbox series

[v1,0/3] Use CNTVCTSS_EL0 in gettimeofday()

Message ID 20220825102025.53916-1-joey.gouly@arm.com (mailing list archive)
Headers show
Series Use CNTVCTSS_EL0 in gettimeofday() | expand

Message

Joey Gouly Aug. 25, 2022, 10:20 a.m. UTC
Hi all,

This patchset adds support for using CNTVCTSS_EL0 in gettimeofday() in the vDSO.
This can improve the accuracy and efficiency of some applications that call
gettimeofday() a lot.

This has been tested on an internal platform and a publicly available platform
that has FEAT_ECV.

Thanks,
Joey

Joey Gouly (3):
  arm64: module: move find_section to header
  arm64: alternative: patch alternatives in the vDSO
  arm64: vdso: use SYS_CNTVCTSS_EL0 for gettimeofday

 arch/arm64/include/asm/module.h            | 15 +++++++++++++
 arch/arm64/include/asm/vdso.h              |  3 +++
 arch/arm64/include/asm/vdso/gettimeofday.h | 14 ++++++++----
 arch/arm64/kernel/alternative.c            | 25 ++++++++++++++++++++++
 arch/arm64/kernel/module.c                 | 15 -------------
 arch/arm64/kernel/vdso.c                   |  3 ---
 arch/arm64/kernel/vdso/vdso.lds.S          |  7 ++++++
 7 files changed, 60 insertions(+), 22 deletions(-)