mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
aio / timers: Remove main_loop_timerlist
Now we have timerlistgroups implemented and main_loop_tlg, we no longer need the concept of a default timer list associated with each clock. Remove it and simplify initialisation of clocks and timer lists. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
40daca54cd
commit
7bf8fbde44
2 changed files with 28 additions and 41 deletions
|
@ -65,7 +65,6 @@ struct QEMUTimer {
|
|||
};
|
||||
|
||||
extern QEMUTimerListGroup main_loop_tlg;
|
||||
extern QEMUClock *qemu_clocks[QEMU_CLOCK_MAX];
|
||||
|
||||
/*
|
||||
* QEMUClock & QEMUClockType
|
||||
|
@ -79,10 +78,7 @@ extern QEMUClock *qemu_clocks[QEMU_CLOCK_MAX];
|
|||
*
|
||||
* Returns: a pointer to the QEMUClock object
|
||||
*/
|
||||
static inline QEMUClock *qemu_clock_ptr(QEMUClockType type)
|
||||
{
|
||||
return qemu_clocks[type];
|
||||
}
|
||||
QEMUClock *qemu_clock_ptr(QEMUClockType type);
|
||||
|
||||
/**
|
||||
* qemu_clock_get_ns;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue