diff options
author | phk <phk@FreeBSD.org> | 1999-04-25 09:00:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-04-25 09:00:00 +0000 |
commit | 9944adfa60560c210f1f7a3ec4eb221351f54eb4 (patch) | |
tree | c594604f5475788af19ce08e9d1bb25738ebc626 /sys/isa | |
parent | a7774b22060f578874d895e8b12d204255614f55 (diff) | |
download | FreeBSD-src-9944adfa60560c210f1f7a3ec4eb221351f54eb4.zip FreeBSD-src-9944adfa60560c210f1f7a3ec4eb221351f54eb4.tar.gz |
Make the machdep.i8254_freq and machdep.tsc_freq sysctls modify the
timecounter as well
Asked for by: bde, jhay
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/atrtc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 9467e2d..dc02dea 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.130 1999/04/21 07:26:27 peter Exp $ + * $Id: clock.c,v 1.131 1999/04/21 07:41:40 peter Exp $ */ /* @@ -1115,6 +1115,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); } @@ -1135,6 +1136,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); } |