mbox series

[0/3] qdev-clock: miscellaneous cleanups

Message ID 20241129180326.722436-1-pbonzini@redhat.com (mailing list archive)
Headers show
Series qdev-clock: miscellaneous cleanups | expand

Message

Paolo Bonzini Nov. 29, 2024, 6:03 p.m. UTC
These are some simple patches that I made while studying qdev clocks.
The main change is removing the callback on unparent rather than
finalization, because finalization is too late and the callbacks (if they
were called) would operate on a device that's been already partly
dismantled.

Patches 2 and 3 instead are just cleanups.

Paolo

Paolo Bonzini (3):
  clock: clear callback on unparent
  clock: treat outputs and inputs the same in NamedClockList
  clock: inline most of qdev_init_clocklist

 include/hw/clock.h   |  8 -----
 hw/core/clock.c      | 22 +++++++++---
 hw/core/qdev-clock.c | 86 +++++++++++++++-----------------------------
 3 files changed, 46 insertions(+), 70 deletions(-)