diff options
| author | Marc Zyngier <[email protected]> | 2023-03-30 17:47:41 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2023-03-30 18:01:09 +0000 |
| commit | 0d0ae656b71155ccc0be9388beef77a1f7e7558e (patch) | |
| tree | 730aaccc2d4e322717589caa4f9e09ead005ab77 /include/kvm/arm_arch_timer.h | |
| parent | Linux 6.3-rc3 (diff) | |
| download | kernel-0d0ae656b71155ccc0be9388beef77a1f7e7558e.tar.gz kernel-0d0ae656b71155ccc0be9388beef77a1f7e7558e.zip | |
KVM: arm64: timers: Use a per-vcpu, per-timer accumulator for fractional ns
Instead of accumulating the fractional ns value generated every time
we compute a ns delta in a global variable, use a per-vcpu, per-timer
variable. This keeps the fractional ns local to the timer instead of
contributing to any odd, unrelated timer.
Reviewed-by: Colton Lewis <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/kvm/arm_arch_timer.h')
| -rw-r--r-- | include/kvm/arm_arch_timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index c52a6e6839da..70d47c4adc6a 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -44,6 +44,7 @@ struct arch_timer_context { /* Emulated Timer (may be unused) */ struct hrtimer hrtimer; + u64 ns_frac; /* Offset for this counter/timer */ struct arch_timer_offset offset; |
