Make get_ticks_per_sec() a static inline
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:28:26 +0000 (10:28 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 16:10:05 +0000 (11:10 -0500)
commit4e769106efa46c56616155371d4c4c33922415a9
tree115bf888dc420dfc85af33655d6cc4568d4860b6
parentbb32f4bdb287898669d36615ac947f5c1f383591
Make get_ticks_per_sec() a static inline

ticks_per_sec is a constant.  There's no need to store it as a variable as it
never changes since our time is based on units.

Convert get_ticks_per_sec() to a static inline and move the constant into
qemu-timer.h.  Remove all references to QEMU_TIMER_BASE so that we consistently
use this interface.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-timer.h
vl.c