mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
aio / timers: Switch entire codebase to the new timer API
This is an autogenerated patch using scripts/switch-timer-api. Switch the entire code base to using the new timer API. Note this patch may introduce some line length issues. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
fe10ab540b
commit
bc72ad6754
121 changed files with 678 additions and 678 deletions
12
xen-all.c
12
xen-all.c
|
@ -606,8 +606,8 @@ static ioreq_t *cpu_get_ioreq(XenIOState *state)
|
|||
|
||||
port = xc_evtchn_pending(state->xce_handle);
|
||||
if (port == state->bufioreq_local_port) {
|
||||
qemu_mod_timer(state->buffered_io_timer,
|
||||
BUFFER_IO_MAX_DELAY + qemu_get_clock_ms(rt_clock));
|
||||
timer_mod(state->buffered_io_timer,
|
||||
BUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -828,10 +828,10 @@ static void handle_buffered_io(void *opaque)
|
|||
XenIOState *state = opaque;
|
||||
|
||||
if (handle_buffered_iopage(state)) {
|
||||
qemu_mod_timer(state->buffered_io_timer,
|
||||
BUFFER_IO_MAX_DELAY + qemu_get_clock_ms(rt_clock));
|
||||
timer_mod(state->buffered_io_timer,
|
||||
BUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME));
|
||||
} else {
|
||||
qemu_del_timer(state->buffered_io_timer);
|
||||
timer_del(state->buffered_io_timer);
|
||||
xc_evtchn_unmask(state->xce_handle, state->bufioreq_local_port);
|
||||
}
|
||||
}
|
||||
|
@ -962,7 +962,7 @@ static void xen_main_loop_prepare(XenIOState *state)
|
|||
evtchn_fd = xc_evtchn_fd(state->xce_handle);
|
||||
}
|
||||
|
||||
state->buffered_io_timer = qemu_new_timer_ms(rt_clock, handle_buffered_io,
|
||||
state->buffered_io_timer = timer_new_ms(QEMU_CLOCK_REALTIME, handle_buffered_io,
|
||||
state);
|
||||
|
||||
if (evtchn_fd != -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue