Remove the tc_update() function. Any frequency change to the

timecounter will be used starting at the next second, which is
good enough for sysctl purposes.  If better adjustment is needed
the NTP PLL should be used.
This commit is contained in:
Poul-Henning Kamp 2002-04-26 10:06:26 +00:00
parent b94c4e9a93
commit 7e2d76ff05
12 changed files with 0 additions and 25 deletions

View file

@ -1204,7 +1204,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1225,7 +1224,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -1204,7 +1204,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1225,7 +1224,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -248,7 +248,6 @@ acpi_timer_sysctl_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
acpi_timer_frequency = freq;
acpi_timer_timecounter.tc_frequency = acpi_timer_frequency;
tc_update(&acpi_timer_timecounter);
}
return (error);
}

View file

@ -74,7 +74,6 @@ sysctl_machdep_piix_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
piix_freq = freq;
piix_timecounter.tc_frequency = piix_freq;
tc_update(&piix_timecounter);
}
return (error);
}

View file

@ -1204,7 +1204,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1225,7 +1224,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -1204,7 +1204,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1225,7 +1224,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -1204,7 +1204,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1225,7 +1224,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -247,12 +247,6 @@ tco_setscales(struct timecounter *tc)
tc->tc_scale = scale * 2;
}
void
tc_update(struct timecounter *tc)
{
tco_setscales(tc);
}
void
tc_init(struct timecounter *tc)
{

View file

@ -1554,7 +1554,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1575,7 +1574,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -1554,7 +1554,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1575,7 +1574,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -1554,7 +1554,6 @@ sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
return (EBUSY); /* too much trouble to handle */
set_timer_freq(freq, hz);
i8254_timecounter.tc_frequency = freq;
tc_update(&i8254_timecounter);
}
return (error);
}
@ -1575,7 +1574,6 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
if (error == 0 && req->newptr != NULL) {
tsc_freq = freq;
tsc_timecounter.tc_frequency = tsc_freq;
tc_update(&tsc_timecounter);
}
return (error);
}

View file

@ -96,7 +96,6 @@ extern struct timecounter *volatile timecounter;
void tc_init(struct timecounter *tc);
void tc_setclock(struct timespec *ts);
void tc_windup(void);
void tc_update(struct timecounter *tc);
#endif /* !_KERNEL */
#endif /* !_SYS_TIMETC_H_ */