diff options
Diffstat (limited to 'sys/dev/dec/mcclock.c')
-rw-r--r-- | sys/dev/dec/mcclock.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/dec/mcclock.c b/sys/dev/dec/mcclock.c index 9cb3af2..a8a94be 100644 --- a/sys/dev/dec/mcclock.c +++ b/sys/dev/dec/mcclock.c @@ -84,13 +84,6 @@ mcclock_get(device_t dev, time_t base, struct clocktime *ct) ct->day = regs[MC_DOM]; ct->mon = regs[MC_MONTH]; ct->year = regs[MC_YEAR]; - /* - * This chip is not y2k compliant- If it's less than - * 70, we're clearly past the year 2000. - */ - if (ct->year < 70) { - ct->year += 100; - } } /* @@ -112,11 +105,8 @@ mcclock_set(device_t dev, struct clocktime *ct) regs[MC_DOW] = ct->dow; regs[MC_DOM] = ct->day; regs[MC_MONTH] = ct->mon; - /* - * This chip is not y2k compliant- write it with - * no more than two digits. - */ - regs[MC_YEAR] = ct->year % 100; + regs[MC_YEAR] = ct->year; + s = splclock(); MC146818_PUTTOD(dev, ®s); splx(s); |