Don't trap kernel to read the counter register, do this in userspace to improve performance.
Yang Yingliang (3): arm64: arch_timer: Disable CNTVCT_EL0 trap if workaround is enabled vdso: do cntvct workaround in the VDSO arm64: arch_timer: disable CONFIG_ARM_ARCH_TIMER_WORKAROUND_IN_USERSPACE
arch/arm64/configs/openeuler_defconfig | 1 + arch/arm64/include/asm/vdso/gettimeofday.h | 32 ++++++++++++++++++++++ drivers/clocksource/Kconfig | 5 ++++ drivers/clocksource/arm_arch_timer.c | 27 ++++++++++++++++++ include/linux/clocksource.h | 4 +++ include/vdso/datapage.h | 8 +++++- kernel/time/vsyscall.c | 16 +++++++++++ 7 files changed, 92 insertions(+), 1 deletion(-)