]> git.proxmox.com Git - qemu.git/commit
add a generic scaling mechanism for timers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Mar 2011 15:33:58 +0000 (16:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2011 08:23:23 +0000 (09:23 +0100)
commit4a998740b22aa673ea475060c787da7c545588cf
tree0bb1de0638c3dadafea4be2adeb5a071a4af8da4
parent74475455442398a64355428b37422d14ccc293cb
add a generic scaling mechanism for timers

This enables rt_clock timers to use nanosecond resolution, just by
using the _ns functions; there is really no reason to forbid that.

Migrated timers are all using vm_clock (of course; but I checked that
anyway) so the timers in the savevm files are already in nanosecond
resolution.  So this patch makes no change to the migration format.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-timer.c
qemu-timer.h