block: do not use get_clock()
commita56ebc6ba4be1b6060d87b115c48ff57236c8def
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Nov 2014 11:38:03 +0000 (28 11:38 +0000)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:13 +0000 (10 10:31 +0100)
tree9890022686c27e00425ed2acdda77e382f09a16a
parentc5f6e493bb5339d244eae5d3f21c5b6d73996739
block: do not use get_clock()

Use the external qemu-timer API instead.

No one else should be calling cpu_get_clock(), get_clock() and
get_clock_realtime() directly; they are internal functions and they
should be confined to qemu-timer.c and cpus.c (where the icount
implementation resides).  All accesses should go through
qemu_clock_get_ns.

Cc: kwolf@redhat.com
Cc: stefanha@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1417010463-3527-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/accounting.c
block/raw-posix.c