mc146818rtc: Handle host clock resets
commit17604dac28b2410c021a4a52dcfa58e8803dfb24
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 20 Jun 2011 12:06:28 +0000 (20 14:06 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:26:12 +0000 (23 11:26 -0500)
tree27d05f93470ccb7df50d02098d98e826238c01b0
parent691a0c9c9b71360271220c12f20a7238bc302503
mc146818rtc: Handle host clock resets

Make use of the new clock reset notifier to update the RTC whenever
rtc_clock is the host clock and that happens to jump backward. This
avoids that the RTC stalls for the period the host clock was set back.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/mc146818rtc.c