• A
    mc146818rtc: update registers after a format change · 51e08f3e
    Aurelien Jarno 提交于
    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: NAurelien Jarno <aurelien@aurel32.net>
    51e08f3e
mc146818rtc.c 19.5 KB