mbox series

[0/4] hw/clock: Inline and remove CLOCK_PERIOD_TO_HZ/CLOCK_PERIOD_TO_NS macro

Message ID 20201020182008.2240590-1-f4bug@amsat.org (mailing list archive)
Headers show
Series hw/clock: Inline and remove CLOCK_PERIOD_TO_HZ/CLOCK_PERIOD_TO_NS macro | expand

Message

Philippe Mathieu-Daudé Oct. 20, 2020, 6:20 p.m. UTC
Following discussion and analysis from Peter:
https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg05853.html

Last patch is RFC because I doubt using 128-bit is what we want...
but I'm not sure how to round it neither.

Future possible cleanup: un-inline these helpers.

Luc Michel (1):
  hw/core/clock: trace clock values in Hz instead of ns

Philippe Mathieu-Daudé (3):
  qdev-monitor: Display frequencies scaled to SI unit
  hw/clock: Inline and remove CLOCK_PERIOD_TO_HZ()
  hw/clock: Inline and remove CLOCK_PERIOD_TO_NS()

 include/hw/clock.h     | 19 +++++++++++++------
 hw/core/clock.c        |  8 +++++---
 softmmu/qdev-monitor.c |  8 +++++---
 hw/core/trace-events   |  4 ++--
 4 files changed, 25 insertions(+), 14 deletions(-)