diff options
author | Peter Maydell | 2020-04-17 17:54:28 +0200 |
---|---|---|
committer | Peter Maydell | 2020-04-30 12:52:28 +0200 |
commit | 4cba075efedde66f0a8658001da7fc09a09024e1 (patch) | |
tree | 2ab5240b37dbddf56b0ef0aa18308d8b88d941ad /hw/core/clock-vmstate.c | |
parent | tests/boot_linux_console: Add ethernet test to SmartFusion2 (diff) | |
download | qemu-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