Skip to content
Commit f6baabdc authored by Anish Moorthy's avatar Anish Moorthy Committed by Sean Christopherson
Browse files

KVM: selftests: Fix nsec to sec conversion in demand_paging_test



demand_paging_test uses 1E8 as the denominator to convert nanoseconds to
seconds, which is wrong. Use NSEC_PER_SEC instead to fix the issue and
make the conversion obvious.

Reported-by: default avatarJames Houghton <jthoughton@google.com>
Signed-off-by: default avatarAnish Moorthy <amoorthy@google.com>
Reviewed-by: default avatarOliver Upton <oliver.upton@linux.dev>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20230223001805.2971237-1-amoorthy@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent d8708b80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment