summaryrefslogtreecommitdiffstats
path: root/hw/core/clock-vmstate.c
diff options
context:
space:
mode:
authorPeter Maydell2020-04-17 17:54:28 +0200
committerPeter Maydell2020-04-30 12:52:28 +0200
commit4cba075efedde66f0a8658001da7fc09a09024e1 (patch)
tree2ab5240b37dbddf56b0ef0aa18308d8b88d941ad /hw/core/clock-vmstate.c
parenttests/boot_linux_console: Add ethernet test to SmartFusion2 (diff)
downloadqemu-4cba075efedde66f0a8658001da7fc09a09024e1.tar.gz
qemu-4cba075efedde66f0a8658001da7fc09a09024e1.tar.xz
qemu-4cba075efedde66f0a8658001da7fc09a09024e1.zip
hw/core/clock: introduce clock object
This object may be used to represent a clock inside a clock tree. A clock may be connected to another clock so that it receives update, through a callback, whenever the source/parent clock is updated. Although only the root clock of a clock tree controls the values (represented as periods) of all clocks in tree, each clock holds a local state containing the current value so that it can be fetched independently. It will allows us to fullfill migration requirements by migrating each clock independently of others. This is based on the original work of Frederic Konrad. Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-id: 20200406135251.157596-2-damien.hedde@greensocs.com [PMM: Use uint64_t rather than unsigned long long in trace events; the dtrace backend can't handle the latter] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/clock-vmstate.c')
0 files changed, 0 insertions, 0 deletions