summaryrefslogtreecommitdiff
path: root/sys/dev/dec
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2001-12-17 14:03:15 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2001-12-17 14:03:15 +0000
commit845f932615a222dcb61e15d3b9a585cc34ddf613 (patch)
treea66d4fc3344aa6dc1075f08c101e1ff019bd84f4 /sys/dev/dec
parent25880f3ccd9343bdcb3785f54106b16ad8d427a8 (diff)
Notes
Diffstat (limited to 'sys/dev/dec')
-rw-r--r--sys/dev/dec/mcclock.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/dec/mcclock.c b/sys/dev/dec/mcclock.c
index 9cb3af200ce1..a8a94be5e3d0 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, &regs);
splx(s);