aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c/mpc_i2c.c
diff options
context:
space:
mode:
authorAndrei Gudkov <gudkov.andrei@huawei.com>2023-09-05 12:18:39 +0300
committerHyman Huang <yong.huang@smartx.com>2023-10-10 08:04:12 +0800
commit320a6ccc769dc09ae7ad0b4838e322018f334bf4 (patch)
treee44214c36959134ef87de6c8e5c5a3c965ac7494 /hw/i2c/mpc_i2c.c
parent34a68001f16208a574cbef0cd2d4e2d681faa604 (diff)
migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time
Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as the source for start-time field. This translates to clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds since host boot. This is not very useful. The only reasonable use case of start-time I can imagine is to check whether previously completed measurements are too old or not. But this makes sense only if start-time is reported as host wall-clock time. This patch replaces source of start-time from QEMU_CLOCK_REALTIME to QEMU_CLOCK_HOST. Signed-off-by: Andrei Gudkov <gudkov.andrei@huawei.com> Reviewed-by: Hyman Huang <yong.huang@smartx.com> Message-Id: <399861531e3b24a1ecea2ba453fb2c3d129fb03a.1693905328.git.gudkov.andrei@huawei.com> Signed-off-by: Hyman Huang <yong.huang@smartx.com>
Diffstat (limited to 'hw/i2c/mpc_i2c.c')
0 files changed, 0 insertions, 0 deletions