From: rutu.shah.26@gmail.com
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, kvm@vger.kernel.org, mst@redhat.com,
jasowang@redhat.com, mark.cave-ayland@ilande.co.uk,
lcapitulino@redhat.com, blauwirbel@gmail.com, kraxel@redhat.com,
qemu-block@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com,
samuel.thibault@ens-lyon.org, alistair.francis@xilinx.com,
qemu-arm@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com,
cornelia.huck@de.ibm.com, jsnow@redhat.com, rth@twiddle.net,
kwolf@redhat.com, crosthwaite.peter@gmail.com, armbru@redhat.com,
qemu-ppc@nongnu.org, imammedo@redhat.com
Subject: [Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND
Date: Mon, 21 Mar 2016 00:01:23 +0530 [thread overview]
Message-ID: <1458498684-32509-1-git-send-email-rutu.shah.26@gmail.com> (raw)
In-Reply-To: <[PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND>
Example given by Paolo Bonzini,
timer_mod(fdctrl->result_timer,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50));
NANOSECONDS_PER_SECOND makes it obvious that the timer will expire in 1/50th of a second.
---
audio/audio.c | 3 +--
audio/noaudio.c | 8 ++++----
audio/spiceaudio.c | 4 ++--
audio/wavaudio.c | 2 +-
backends/baum.c | 2 +-
block/qed.c | 2 +-
cpus.c | 6 +++---
hw/acpi/core.c | 4 ++--
hw/arm/omap1.c | 17 +++++++++--------
hw/arm/spitz.c | 2 +-
hw/arm/stellaris.c | 2 +-
hw/arm/strongarm.c | 2 +-
hw/audio/adlib.c | 2 +-
hw/audio/sb16.c | 4 ++--
hw/block/fdc.c | 4 ++--
hw/block/pflash_cfi02.c | 8 ++++----
hw/bt/hci-csr.c | 4 ++--
hw/char/cadence_uart.c | 4 ++--
hw/char/serial.c | 10 ++++++----
hw/display/vga.c | 6 +++---
hw/dma/rc4030.c | 2 +-
hw/ide/core.c | 4 ++--
hw/input/hid.c | 2 +-
hw/input/tsc2005.c | 3 ++-
hw/input/tsc210x.c | 3 ++-
hw/intc/i8259.c | 2 +-
hw/misc/arm_sysctl.c | 3 ++-
hw/misc/macio/cuda.c | 16 ++++++++--------
hw/misc/macio/macio.c | 2 +-
hw/net/dp8393x.c | 2 +-
hw/ppc/ppc.c | 21 ++++++++++++---------
hw/ppc/ppc405_uc.c | 4 ++--
hw/ppc/ppc_booke.c | 2 +-
hw/sd/sdhci-internal.h | 2 +-
hw/sparc64/sun4u.c | 4 ++--
hw/timer/i8254.c | 4 ++--
hw/timer/i8254_common.c | 6 +++---
hw/timer/mc146818rtc.c | 14 ++++++++------
hw/timer/omap_gptimer.c | 2 +-
hw/timer/omap_synctimer.c | 3 ++-
hw/timer/pl031.c | 10 +++++-----
hw/timer/pxa2xx_timer.c | 18 ++++++++++--------
hw/usb/hcd-ehci.c | 5 +++--
hw/usb/hcd-musb.c | 2 +-
hw/usb/hcd-ohci.c | 10 +++++-----
hw/usb/hcd-uhci.c | 6 +++---
hw/usb/tusb6010.c | 6 +++---
hw/watchdog/wdt_diag288.c | 2 +-
hw/watchdog/wdt_ib700.c | 2 +-
include/hw/acpi/acpi.h | 2 +-
include/qemu/timer.h | 9 ++-------
monitor.c | 4 ++--
target-ppc/kvm.c | 4 ++--
53 files changed, 143 insertions(+), 134 deletions(-)
---
Thanks,
Rutuja Shah
next parent reply other threads:[~2016-03-20 18:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND>
2016-03-20 18:31 ` rutu.shah.26 [this message]
2016-03-20 18:31 ` [Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND rutu.shah.26
2016-03-21 8:17 ` Christian Borntraeger
2016-03-20 18:35 ` rutuja shah
2016-03-21 16:02 ` rutu.shah.26
2016-03-21 16:24 ` Paolo Bonzini
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=1458498684-32509-1-git-send-email-rutu.shah.26@gmail.com \
--to=rutu.shah.26@gmail.com \
--cc=agraf@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=armbru@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=borntraeger@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=crosthwaite.peter@gmail.com \
--cc=imammedo@redhat.com \
--cc=jasowang@redhat.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
--cc=samuel.thibault@ens-lyon.org \
--cc=stefanha@redhat.com \
/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).