mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-15 09:46:54 +00:00
remove qemu_get_clock
These patches are already not doing a great service to out-of-tree modifications to QEMU. However, at least we can warn them by getting rid of the old confusing functions, or otherwise causing compilation errors. This patch removes qemu_get_clock; the previous one changed qemu_new_timer's signature. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4a998740b2
commit
6d5ad9bf93
17
qemu-timer.c
17
qemu-timer.c
@ -506,23 +506,6 @@ static void qemu_run_timers(QEMUClock *clock)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t qemu_get_clock(QEMUClock *clock)
|
|
||||||
{
|
|
||||||
switch(clock->type) {
|
|
||||||
case QEMU_CLOCK_REALTIME:
|
|
||||||
return get_clock() / 1000000;
|
|
||||||
default:
|
|
||||||
case QEMU_CLOCK_VIRTUAL:
|
|
||||||
if (use_icount) {
|
|
||||||
return cpu_get_icount();
|
|
||||||
} else {
|
|
||||||
return cpu_get_clock();
|
|
||||||
}
|
|
||||||
case QEMU_CLOCK_HOST:
|
|
||||||
return get_clock_realtime();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int64_t qemu_get_clock_ns(QEMUClock *clock)
|
int64_t qemu_get_clock_ns(QEMUClock *clock)
|
||||||
{
|
{
|
||||||
switch(clock->type) {
|
switch(clock->type) {
|
||||||
|
@ -37,7 +37,6 @@ extern QEMUClock *vm_clock;
|
|||||||
the virtual clock. */
|
the virtual clock. */
|
||||||
extern QEMUClock *host_clock;
|
extern QEMUClock *host_clock;
|
||||||
|
|
||||||
int64_t qemu_get_clock(QEMUClock *clock);
|
|
||||||
int64_t qemu_get_clock_ns(QEMUClock *clock);
|
int64_t qemu_get_clock_ns(QEMUClock *clock);
|
||||||
void qemu_clock_enable(QEMUClock *clock, int enabled);
|
void qemu_clock_enable(QEMUClock *clock, int enabled);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user