]> git.proxmox.com Git - qemu.git/commit
mc146818rtc: update registers after a format change
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 25 Jan 2011 10:55:15 +0000 (11:55 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 29 Jan 2011 14:19:22 +0000 (15:19 +0100)
commit51e08f3e4b8a3b6d27fde9a9e75c8fa32eaa72d0
treecfdfc4c13300191c3982e6bb026ba09ea5dba705
parentc29cd656a8fad633fb9ca45b88ade9838d35fd5c
mc146818rtc: update registers after a format change

For some unknown reason, the MIPS kernel briefly changes the RTC to
binary mode during boot, switch back to BCD mode and read the time. As
the registers are updated only every second, they may still be in the
old format when they are read.

This patch forces a register update immediately after a format change
(BCD/binary or 12/24H). This avoid long fsck during boot due to time
wrap.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/mc146818rtc.c