diff options
author | ache <ache@FreeBSD.org> | 1993-11-04 01:56:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1993-11-04 01:56:31 +0000 |
commit | a75aa5402e113401e3981b7b512c90761b6b4f8a (patch) | |
tree | 5448df46bbcc75d0edc33c2b80949b8b084ce014 /sys | |
parent | c71cb496fa02916ee20ee263145a09c053bdda97 (diff) | |
download | FreeBSD-src-a75aa5402e113401e3981b7b512c90761b6b4f8a.zip FreeBSD-src-a75aa5402e113401e3981b7b512c90761b6b4f8a.tar.gz |
DST offset calculation removed, it is wrong in any case.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/tsc.c | 12 | ||||
-rw-r--r-- | sys/amd64/isa/clock.c | 12 | ||||
-rw-r--r-- | sys/i386/i386/tsc.c | 12 | ||||
-rw-r--r-- | sys/i386/isa/clock.c | 12 | ||||
-rw-r--r-- | sys/isa/atrtc.c | 12 |
5 files changed, 5 insertions, 55 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 53497c8..133f2d1 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.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; diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 53497c8..133f2d1 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.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; diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 53497c8..133f2d1 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.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; diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 53497c8..133f2d1 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.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; 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; |