Take the "tickadj" element out of struct clockinfo. Our adjtime(2)

implementation is being changed and the very concept of tickadj will
no longer be meaningful.
This commit is contained in:
Poul-Henning Kamp 2002-04-15 12:11:06 +00:00
parent da57e52add
commit b35c8f287d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94752
3 changed files with 2 additions and 4 deletions

View File

@ -277,8 +277,8 @@ S_clockinfo(int l2, void *p)
struct clockinfo *ci = (struct clockinfo*)p;
if (l2 != sizeof(*ci))
err(1, "S_clockinfo %d != %d", l2, sizeof(*ci));
printf("{ hz = %d, tick = %d, tickadj = %d, profhz = %d, stathz = %d }",
ci->hz, ci->tick, ci->tickadj, ci->profhz, ci->stathz);
printf("{ hz = %d, tick = %d, profhz = %d, stathz = %d }",
ci->hz, ci->tick, ci->profhz, ci->stathz);
return (0);
}

View File

@ -484,7 +484,6 @@ sysctl_kern_clockrate(SYSCTL_HANDLER_ARGS)
*/
clkinfo.hz = hz;
clkinfo.tick = tick;
clkinfo.tickadj = tickadj;
clkinfo.profhz = profhz;
clkinfo.stathz = stathz ? stathz : hz;
return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));

View File

@ -262,7 +262,6 @@ struct itimerval {
struct clockinfo {
int hz; /* clock frequency */
int tick; /* micro-seconds per hz tick */
int tickadj; /* clock skew rate for adjtime() */
int stathz; /* statistics clock frequency */
int profhz; /* profiling clock frequency */
};