qemu/include/hw/acpi
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
..
acpi_dev_interface.h acpi: introduce TYPE_ACPI_DEVICE_IF interface 2014-06-19 18:44:22 +03:00
acpi-defs.h hw/arm/virt: Add gic-version option to virt machine 2015-09-24 01:29:37 +01:00
acpi.h Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND 2016-03-22 22:20:17 +01:00
aml-build.h acpi: add build_append_named_dword, returning an offset in buffer 2016-03-11 14:54:28 +02:00
bios-linker-loader.h vhost, virtio, pci, pc 2016-02-25 12:13:49 +00:00
cpu_hotplug.h pc: acpi: cpuhp: move \_GPE._E02() into SSDT 2016-01-09 23:20:17 +02:00
ich9.h ich9: Remove enable_tco arguments from init functions 2016-02-25 13:14:19 +02:00
memory_hotplug.h pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage 2016-01-09 23:20:17 +02:00
pc-hotplug.h pc: acpi: cpuhp: move \_GPE._E02() into SSDT 2016-01-09 23:20:17 +02:00
pcihp.h Clean up includes some more 2016-03-22 22:20:16 +01:00
piix4.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
tco.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
tpm.h TPM2 ACPI table support 2015-06-01 14:18:54 +02:00