[coreboot] Patch merged into coreboot/master: 094920d mc146818rtc: Update the Day of Week in CMOS in the right way.
gerrit at coreboot.org
gerrit at coreboot.org
Fri Nov 9 15:19:01 CET 2012
the following patch was just integrated into master:
commit 094920ddd327149e1f513bca413e536806b69f9e
Author: Zheng Bao <fishbaozi at gmail.com>
Date: Fri Nov 9 18:15:54 2012 +0800
mc146818rtc: Update the Day of Week in CMOS in the right way.
The range of weekday in CMOS is 01-07, while the Sunday is 1, and
Saturday is 7. The comand date in coreutils defines
%u day of week (1..7); 1 is Monday
%w day of week (0..6); 0 is Sunday
There are 1 day offset for each week day. So we use "%w" and plus 1
before we update the weekday in CMOS.
Change-Id: I3fab4e95f04924ff0ba10a7012b57da1d3f0d1a5
Signed-off-by: Zheng Bao <zheng.bao at amd.com>
Signed-off-by: zbao <fishbaozi at gmail.com>
Reviewed-on: http://review.coreboot.org/1802
Tested-by: build bot (Jenkins)
Reviewed-by: Anton Kochkov <anton.kochkov at gmail.com>
Build-Tested: build bot (Jenkins) at Fri Nov 9 11:57:29 2012, giving +1
Reviewed-By: Anton Kochkov <anton.kochkov at gmail.com> at Fri Nov 9 15:19:00 2012, giving +2
See http://review.coreboot.org/1802 for details.
-gerrit
More information about the coreboot
mailing list