qemu-e2k/hw/timer
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
..
Makefile.objs hw/timer: Add ASPEED timer device model 2016-03-16 17:42:18 +00:00
a9gtimer.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
allwinner-a10-pit.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
arm_mptimer.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
arm_timer.c hw/timer: QOM'ify arm_timer (pass 2) 2016-02-18 14:50:50 +00:00
aspeed_timer.c hw/timer: Add ASPEED timer device model 2016-03-16 17:42:18 +00:00
cadence_ttc.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
digic-timer.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
ds1338.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
etraxfs_timer.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00
exynos4210_mct.c hw/timer: QOM'ify exynos4210_mct 2016-02-18 14:50:50 +00:00
exynos4210_pwm.c hw/timer: QOM'ify exynos4210_pwm 2016-02-18 14:50:50 +00:00
exynos4210_rtc.c hw/timer: QOM'ify exynos4210_rtc 2016-02-18 14:50:50 +00:00
grlib_gptimer.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00
hpet.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
i8254.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
i8254_common.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
imx_epit.c i.MX: Add the CLK_IPG_HIGH clock 2016-03-16 17:42:18 +00:00
imx_gpt.c i.MX: Add the CLK_IPG_HIGH clock 2016-03-16 17:42:18 +00:00
lm32_timer.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
m48t59.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
mc146818rtc.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
milkymist-sysctl.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
omap_gptimer.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
omap_synctimer.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
pl031.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
puv3_ost.c unicore: Clean up includes 2016-01-29 15:07:22 +00:00
pxa2xx_timer.c Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
sh_timer.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00
slavio_timer.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00
stm32f2xx_timer.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00
twl92230.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00
xilinx_timer.c hw/timer: Clean up includes 2016-01-29 15:07:24 +00:00