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