Commit 178c01ca authored by dann frazier's avatar dann frazier Committed by Tim Gardner

Revert "KVM: arm/arm64: timer: Switch to CLOCK_MONOTONIC_RAW"

BugLink: http://bugs.launchpad.net/bugs/1549494

This reverts commit c1fab9a6d70a0043bbda8162e89bafab0500324c.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent ecc33964
......@@ -48,7 +48,7 @@ static bool timer_is_armed(struct arch_timer_cpu *timer)
static void timer_arm(struct arch_timer_cpu *timer, u64 ns)
{
timer->armed = true;
hrtimer_start(&timer->timer, ktime_add_ns(ktime_get_raw(), ns),
hrtimer_start(&timer->timer, ktime_add_ns(ktime_get(), ns),
HRTIMER_MODE_ABS);
}
......@@ -311,7 +311,7 @@ void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu)
struct arch_timer_cpu *timer = &vcpu->arch.timer_cpu;
INIT_WORK(&timer->expired, kvm_timer_inject_irq_work);
hrtimer_init(&timer->timer, CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS);
hrtimer_init(&timer->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
timer->timer.function = kvm_timer_expire;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment