qemu/hw/arm
Rutuja Shah 73bcb24d93 Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND
This patch replaces get_ticks_per_sec() calls with the macro
NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec()
is then removed.  This replacement improves the readability and
understandability of code.

For example,

    timer_mod(fdctrl->result_timer,
	      qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50));

NANOSECONDS_PER_SECOND makes it obvious that qemu_clock_get_ns
matches the unit of the expression on the right side of the plus.

Signed-off-by: Rutuja Shah <rutu.shah.26@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-03-22 22:20:17 +01:00
..
allwinner-a10.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
armv7m.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
ast2400.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
bcm2835_peripherals.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
bcm2836.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
boot.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
collie.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
cubieboard.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
digic_boards.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
digic.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
exynos4_boards.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
exynos4210.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
fsl-imx25.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
fsl-imx31.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
gumstix.c machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
highbank.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
imx25_pdk.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
integratorcp.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
kzm.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
mainstone.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
Makefile.objs hw/arm: Add palmetto-bmc machine 2016-03-16 17:42:18 +00:00
musicpal.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
netduino2.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
nseries.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
omap1.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
omap2.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
omap_sx1.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
palm.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
palmetto-bmc.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
pxa2xx_gpio.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx_pic.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
pxa2xx.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
raspi.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
realview.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
spitz.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
stellaris.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
stm32f205_soc.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
strongarm.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sysbus-fdt.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tosa.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
versatilepb.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
vexpress.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
virt-acpi-build.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
virt.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xilinx_zynq.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
xlnx-ep108.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
xlnx-zynqmp.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
z2.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00