From 482f0be02689785df063a8bb367adf3920c90e32 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Wed, 28 Apr 1999 08:06:00 +0000 Subject: [PATCH] Sync with sys/i386/isa/clock.c revision 1.132. --- sys/pc98/cbus/clock.c | 4 +++- sys/pc98/cbus/pcrtc.c | 4 +++- sys/pc98/pc98/clock.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 51879cf7e7c..33a31b02c0b 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $ + * $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $ */ /* @@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS return (EBUSY); /* too much trouble to handle */ set_timer_freq(freq, hz); i8254_timecounter.tc_frequency = freq; + update_timecounter(&i8254_timecounter); } return (error); } @@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS if (error == 0 && req->newptr != NULL) { tsc_freq = freq; tsc_timecounter.tc_frequency = tsc_freq; + update_timecounter(&tsc_timecounter); } return (error); } diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c index 51879cf7e7c..33a31b02c0b 100644 --- a/sys/pc98/cbus/pcrtc.c +++ b/sys/pc98/cbus/pcrtc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $ + * $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $ */ /* @@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS return (EBUSY); /* too much trouble to handle */ set_timer_freq(freq, hz); i8254_timecounter.tc_frequency = freq; + update_timecounter(&i8254_timecounter); } return (error); } @@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS if (error == 0 && req->newptr != NULL) { tsc_freq = freq; tsc_timecounter.tc_frequency = tsc_freq; + update_timecounter(&tsc_timecounter); } return (error); } diff --git a/sys/pc98/pc98/clock.c b/sys/pc98/pc98/clock.c index 51879cf7e7c..33a31b02c0b 100644 --- a/sys/pc98/pc98/clock.c +++ b/sys/pc98/pc98/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.66 1999/01/28 11:36:22 kato Exp $ + * $Id: clock.c,v 1.67 1999/04/21 12:14:37 kato Exp $ */ /* @@ -1466,6 +1466,7 @@ sysctl_machdep_i8254_freq SYSCTL_HANDLER_ARGS return (EBUSY); /* too much trouble to handle */ set_timer_freq(freq, hz); i8254_timecounter.tc_frequency = freq; + update_timecounter(&i8254_timecounter); } return (error); } @@ -1486,6 +1487,7 @@ sysctl_machdep_tsc_freq SYSCTL_HANDLER_ARGS if (error == 0 && req->newptr != NULL) { tsc_freq = freq; tsc_timecounter.tc_frequency = tsc_freq; + update_timecounter(&tsc_timecounter); } return (error); }