Quick fix for the i8254 timecounter often gaining 10 msec.
This commit is contained in:
parent
86740c3409
commit
168be6199e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33753
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user