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

Joey Gouly joey.gouly at arm.com
Thu Aug 25 03:20:22 PDT 2022


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(-)

-- 
2.17.1




More information about the linux-arm-kernel mailing list