]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: cmos: century support
authorSylvain Chouleur <sylvain.chouleur@intel.com>
Mon, 8 Jun 2015 09:45:19 +0000 (11:45 +0200)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Mon, 13 Nov 2017 19:45:34 +0000 (11:45 -0800)
commit7c046d7f6492b2832ea42d7c72dfa932503c0797
tree93e707ef3b520160bb5dceee098de0c0ac1ab93c
parenta6bd9d360490fdfdd855fac05c6c8b4caea7637e
rtc: cmos: century support

If century field is supported by the RTC CMOS device, then we should use
it and then do not consider years greater that 169 as an error.

For information, the year field of the rtc_time structure contains the
value to add to 1970 to obtain the current year.

This was a hack to be able to support years for 1970 to 2069.
This patch remains compatible with this implementation.

Signed-off-by: Sylvain Chouleur <sylvain.chouleur@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
(cherry picked from commit 3c217e51d8a272b9301058fe845d6c69cc0651cb)

Orabug: 27111144

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
include/asm-generic/rtc.h