KVM: arm64: selftests: Split arch_timer test code
authorHaibo Xu <haibo1.xu@intel.com>
Mon, 22 Jan 2024 09:58:34 +0000 (17:58 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 26 Feb 2024 04:43:58 +0000 (10:13 +0530)
commitc20dd9e0695fc1e4da4ff01a111b0392862cfed6
tree145f6e57ccd99a975d17413665804378db44bea1
parentd1dafd065a23e47a559f30573bffa600e527ff2a
KVM: arm64: selftests: Split arch_timer test code

Split the arch-neutral test code out of aarch64/arch_timer.c
and put them into a common arch_timer.c. This is a preparation
to share timer test codes in riscv.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/arch_timer.c
tools/testing/selftests/kvm/arch_timer.c [new file with mode: 0644]
tools/testing/selftests/kvm/include/test_util.h
tools/testing/selftests/kvm/include/timer_test.h [new file with mode: 0644]