qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: James Hogan <james.hogan@imgtec.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] mips: kvm: do not use get_clock()
Date: Thu, 27 Nov 2014 10:16:10 +0000	[thread overview]
Message-ID: <5476F9EA.60002@imgtec.com> (raw)
In-Reply-To: <1417010463-3527-3-git-send-email-pbonzini@redhat.com>

[-- 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 --]

      reply	other threads:[~2014-11-27 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5476F9EA.60002@imgtec.com \
    --to=james.hogan@imgtec.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).