From 168be6199ea7c1475b19bd76360d43f6b4e67e96 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 23 Feb 1998 00:11:25 +0000 Subject: [PATCH] Quick fix for the i8254 timecounter often gaining 10 msec. --- sys/amd64/amd64/tsc.c | 3 ++- sys/amd64/isa/clock.c | 3 ++- sys/i386/i386/tsc.c | 3 ++- sys/i386/isa/clock.c | 3 ++- sys/isa/atrtc.c | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 9941f73766bd..bc0b9513c555 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: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ + * $Id: clock.c,v 1.112 1998/02/21 20:45:27 jkh Exp $ */ /* @@ -190,6 +190,7 @@ clkintr(struct clockframe frame) i8254_offset += timer0_max_count; else i8254_ticked = 0; + i8254_lastcount = 0; timer_func(&frame); switch (timer0_state) { diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 9941f73766bd..bc0b9513c555 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: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ + * $Id: clock.c,v 1.112 1998/02/21 20:45:27 jkh Exp $ */ /* @@ -190,6 +190,7 @@ clkintr(struct clockframe frame) i8254_offset += timer0_max_count; else i8254_ticked = 0; + i8254_lastcount = 0; timer_func(&frame); switch (timer0_state) { diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 9941f73766bd..bc0b9513c555 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: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ + * $Id: clock.c,v 1.112 1998/02/21 20:45:27 jkh Exp $ */ /* @@ -190,6 +190,7 @@ clkintr(struct clockframe frame) i8254_offset += timer0_max_count; else i8254_ticked = 0; + i8254_lastcount = 0; timer_func(&frame); switch (timer0_state) { diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 9941f73766bd..bc0b9513c555 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: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ + * $Id: clock.c,v 1.112 1998/02/21 20:45:27 jkh Exp $ */ /* @@ -190,6 +190,7 @@ clkintr(struct clockframe frame) i8254_offset += timer0_max_count; else i8254_ticked = 0; + i8254_lastcount = 0; timer_func(&frame); switch (timer0_state) { diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 9941f73766bd..bc0b9513c555 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: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ + * $Id: clock.c,v 1.112 1998/02/21 20:45:27 jkh Exp $ */ /* @@ -190,6 +190,7 @@ clkintr(struct clockframe frame) i8254_offset += timer0_max_count; else i8254_ticked = 0; + i8254_lastcount = 0; timer_func(&frame); switch (timer0_state) {