qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] mips: kvm: do not use get_clock()
@ 2014-11-26 14:01 Paolo Bonzini
  2014-11-27 10:16 ` James Hogan
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2014-11-26 14:01 UTC (permalink / raw)
  To: qemu-devel

Use the external qemu-timer API instead.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 target-mips/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-mips/kvm.c b/target-mips/kvm.c
index 97fd51a..a761ea5 100644
--- a/target-mips/kvm.c
+++ b/target-mips/kvm.c
@@ -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) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] mips: kvm: do not use get_clock()
  2014-11-26 14:01 [Qemu-devel] [PATCH] mips: kvm: do not use get_clock() Paolo Bonzini
@ 2014-11-27 10:16 ` James Hogan
  0 siblings, 0 replies; 2+ messages in thread
From: James Hogan @ 2014-11-27 10:16 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

On 26/11/14 14:01, Paolo Bonzini wrote:
> Use the external qemu-timer API instead.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Acked-by: James Hogan <james.hogan@imgtec.com>

Thanks
James

> ---
>  target-mips/kvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target-mips/kvm.c b/target-mips/kvm.c
> index 97fd51a..a761ea5 100644
> --- a/target-mips/kvm.c
> +++ b/target-mips/kvm.c
> @@ -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) {
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-27 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-26 14:01 [Qemu-devel] [PATCH] mips: kvm: do not use get_clock() Paolo Bonzini
2014-11-27 10:16 ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).