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

Philippe Mathieu-Daudé posted 4 patches 3 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201020182008.2240590-1-f4bug@amsat.org
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(-)
[PATCH 0/4] hw/clock: Inline and remove CLOCK_PERIOD_TO_HZ/CLOCK_PERIOD_TO_NS macro
Posted by Philippe Mathieu-Daudé 3 years, 6 months ago
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(-)

-- 
2.26.2