summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1993-11-04 01:56:31 +0000
committerache <ache@FreeBSD.org>1993-11-04 01:56:31 +0000
commita75aa5402e113401e3981b7b512c90761b6b4f8a (patch)
tree5448df46bbcc75d0edc33c2b80949b8b084ce014 /sys/isa
parentc71cb496fa02916ee20ee263145a09c053bdda97 (diff)
downloadFreeBSD-src-a75aa5402e113401e3981b7b512c90761b6b4f8a.zip
FreeBSD-src-a75aa5402e113401e3981b7b512c90761b6b4f8a.tar.gz
DST offset calculation removed, it is wrong in any case.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/atrtc.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 53497c8..133f2d1 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id$
+ * $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
-#define DAYST 119
-#define DAYEN 303
-
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
- /* XXX off by one? Need to calculate DST on SUNDAY */
- /* Perhaps we should have the RTC hold GMT time to save */
- /* us the bother of converting. */
- yd = yd / (24*60*60);
- if ((yd >= DAYST) && ( yd <= DAYEN)) {
- sec -= 60*60;
- }
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;
OpenPOWER on IntegriCloud