diff options
author | Bibo Mao <maobibo@loongson.cn> | 2023-07-31 10:24:05 +0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-08-02 13:36:08 -0700 |
commit | b859b018aadfd05f0526533fd1bcf04024d01917 (patch) | |
tree | 15f7d59a5dda43f79baa273573e93e0e5e38aaec /tools/testing/selftests/kvm/lib/sparsebit.c | |
parent | 0de704d2d6c82c7498fa1b8df66903f8139e3de2 (diff) |
KVM: selftests: use unified time type for comparison
With test case kvm_page_table_test, start time is acquired with
time type CLOCK_MONOTONIC_RAW, however end time in timespec_elapsed()
is acquired with time type CLOCK_MONOTONIC. This can cause inaccurate
elapsed time calculation due to mixing timebases, e.g. LoongArch in
particular will see weirdness.
Modify kvm_page_table_test to use unified time type CLOCK_MONOTONIC for
start time.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20230731022405.854884-1-maobibo@loongson.cn
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/sparsebit.c')
0 files changed, 0 insertions, 0 deletions