diff options
author | Haibo Xu <haibo1.xu@intel.com> | 2024-01-22 17:58:34 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-02-26 10:13:58 +0530 |
commit | c20dd9e0695fc1e4da4ff01a111b0392862cfed6 (patch) | |
tree | 145f6e57ccd99a975d17413665804378db44bea1 /tools/testing/selftests/kvm/include/test_util.h | |
parent | d1dafd065a23e47a559f30573bffa600e527ff2a (diff) | |
download | linux-stable-c20dd9e0695fc1e4da4ff01a111b0392862cfed6.tar.gz linux-stable-c20dd9e0695fc1e4da4ff01a111b0392862cfed6.tar.bz2 linux-stable-c20dd9e0695fc1e4da4ff01a111b0392862cfed6.zip |
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>
Diffstat (limited to 'tools/testing/selftests/kvm/include/test_util.h')
-rw-r--r-- | tools/testing/selftests/kvm/include/test_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/test_util.h b/tools/testing/selftests/kvm/include/test_util.h index 50a5e31ba8da..8a6e30612c86 100644 --- a/tools/testing/selftests/kvm/include/test_util.h +++ b/tools/testing/selftests/kvm/include/test_util.h @@ -20,6 +20,8 @@ #include <sys/mman.h> #include "kselftest.h" +#define msecs_to_usecs(msec) ((msec) * 1000ULL) + static inline int _no_printf(const char *format, ...) { return 0; } #ifdef DEBUG |