Home
last modified time | relevance | path

Searched hist:f1b21e2c92936c63a67f7c4b81c04b3b7a85c05c (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/kern/
H A Dsubr_clock.cdiff f1b21e2c92936c63a67f7c4b81c04b3b7a85c05c Sun Jul 23 23:28:00 CEST 2017 Ian Lepore <ian@FreeBSD.org> Add common code to support realtime clocks that store year without century.

Most realtime clocks store the year as 2 BCD digits. Some add a century bit
to extend the range another hundred years. Every clock driver has its own
code to determine the century and pass a full year value to clock_ct_to_ts().
Now clock drivers can just convert BCD to bin and store the result in the
clocktime struct and let the common code figure out the century. Clocks
with a century bit can just add 100 to year if the century bit is on.