change all other clock references to use nanosecond resolution accessors
commit74475455442398a64355428b37422d14ccc293cb
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Mar 2011 15:47:48 +0000 (11 16:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2011 08:23:23 +0000 (21 09:23 +0100)
tree2cd6fea3fef5aeca9c2a73ea568ed49fd2b51de1
parent7bd427d801e1e3293a634d3c83beadaa90ffb911
change all other clock references to use nanosecond resolution accessors

This was done with:

    sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
        $(git grep -l 'qemu_get_clock\>' )
    sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
        $(git grep -l 'qemu_new_timer\>' )

after checking that get_clock and new_timer never occur twice
on the same line.  There were no missed occurrences; however, even
if there had been, they would have been caught by the compiler.

There was exactly one false positive in qemu_run_timers:

     -    current_time = qemu_get_clock (clock);
     +    current_time = qemu_get_clock_ns (clock);

which is of course not in this patch.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
68 files changed:
audio/audio.c
audio/noaudio.c
audio/spiceaudio.c
audio/wavaudio.c
hw/acpi_piix4.c
hw/adlib.c
hw/apic.c
hw/arm_sysctl.c
hw/armv7m_nvic.c
hw/baum.c
hw/bt-hci-csr.c
hw/bt-hci.c
hw/cuda.c
hw/dp8393x.c
hw/etraxfs_timer.c
hw/fdc.c
hw/hpet.c
hw/i8254.c
hw/i8259.c
hw/ide/core.c
hw/intel-hda.c
hw/lan9118.c
hw/lm832x.c
hw/m48t59.c
hw/mc146818rtc.c
hw/mips_timer.c
hw/mpcore.c
hw/omap1.c
hw/omap_gptimer.c
hw/omap_synctimer.c
hw/pcnet.c
hw/pcspk.c
hw/pflash_cfi01.c
hw/pflash_cfi02.c
hw/pl031.c
hw/ppc.c
hw/ppc405_uc.c
hw/ppc_prep.c
hw/ptimer.c
hw/pxa2xx.c
hw/pxa2xx_timer.c
hw/rc4030.c
hw/rtl8139.c
hw/sb16.c
hw/serial.c
hw/soc_dma.c
hw/spitz.c
hw/stellaris.c
hw/sun4u.c
hw/syborg_rtc.c
hw/tsc2005.c
hw/tsc210x.c
hw/tusb6010.c
hw/usb-hid.c
hw/usb-musb.c
hw/usb-ohci.c
hw/usb-uhci.c
hw/vga.c
hw/virtio-net.c
hw/vt82c686.c
hw/wdt_i6300esb.c
hw/wdt_ib700.c
monitor.c
net/dump.c
qemu-timer.c
savevm.c
target-ppc/kvm.c
target-ppc/kvm_ppc.c