Skip to content

Commit

Permalink
target-mips: kvm: do not use get_clock()
Browse files Browse the repository at this point in the history
Use the external qemu-timer API instead.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Dec 15, 2014
1 parent 0bb0b2d commit 906b53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-mips/kvm.c
Expand Up @@ -439,7 +439,7 @@ static void kvm_mips_update_state(void *opaque, int running, RunState state)
}
} else {
/* Set clock restore time to now */
count_resume = get_clock();
count_resume = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);
ret = kvm_mips_put_one_reg64(cs, KVM_REG_MIPS_COUNT_RESUME,
&count_resume);
if (ret < 0) {
Expand Down

0 comments on commit 906b53a

Please sign in to comment.