Commit f79e5ec9d587278f5d23c86ac17d83c92a48e50b
Committed by
Greg Kroah-Hartman
1 parent
66c3bfca4b
KVM: s390: base hrtimer on a monotonic clock
commit 0ac96caf0f9381088c673a16d910b1d329670edf upstream. The hrtimer that handles the wait with enabled timer interrupts should not be disturbed by changes of the host time. This patch changes our hrtimer to be based on a monotonic clock. Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/s390/kvm/kvm-s390.c
... | ... | @@ -670,7 +670,7 @@ |
670 | 670 | if (rc) |
671 | 671 | return rc; |
672 | 672 | } |
673 | - hrtimer_init(&vcpu->arch.ckc_timer, CLOCK_REALTIME, HRTIMER_MODE_ABS); | |
673 | + hrtimer_init(&vcpu->arch.ckc_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); | |
674 | 674 | vcpu->arch.ckc_timer.function = kvm_s390_idle_wakeup; |
675 | 675 | get_cpu_id(&vcpu->arch.cpu_id); |
676 | 676 | vcpu->arch.cpu_id.version = 0xff; |