aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2020-12-20 12:26:14 +0100
committerAlistair Francis <alistair.francis@wdc.com>2021-03-04 09:43:29 -0500
commit6b9409ba5f79b93411f32d2589fd3a3a3e4e62e2 (patch)
treef1ac8b289b8947f9fe6127349174c643b72344c2 /hw/rtc
parent01153d2b606ccef3414cbedd3309e7c965902b6b (diff)
downloadqemu-6b9409ba5f79b93411f32d2589fd3a3a3e4e62e2.zip
qemu-6b9409ba5f79b93411f32d2589fd3a3a3e4e62e2.tar.gz
qemu-6b9409ba5f79b93411f32d2589fd3a3a3e4e62e2.tar.bz2
goldfish_rtc: re-arm the alarm after migration
After a migration the clock offset is updated, but we also need to re-arm the alarm if needed. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20201220112615.933036-7-laurent@vivier.eu Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/rtc')
-rw-r--r--hw/rtc/goldfish_rtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c
index 0f4e818..e07ff01 100644
--- a/hw/rtc/goldfish_rtc.c
+++ b/hw/rtc/goldfish_rtc.c
@@ -211,6 +211,8 @@ static int goldfish_rtc_post_load(void *opaque, int version_id)
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
s->tick_offset = s->tick_offset_vmstate - delta;
+ goldfish_rtc_set_alarm(s);
+
return 0;
}