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:
parent
da57e52add
commit
b35c8f287d
@ -277,8 +277,8 @@ S_clockinfo(int l2, void *p)
|
|||||||
struct clockinfo *ci = (struct clockinfo*)p;
|
struct clockinfo *ci = (struct clockinfo*)p;
|
||||||
if (l2 != sizeof(*ci))
|
if (l2 != sizeof(*ci))
|
||||||
err(1, "S_clockinfo %d != %d", l2, sizeof(*ci));
|
err(1, "S_clockinfo %d != %d", l2, sizeof(*ci));
|
||||||
printf("{ hz = %d, tick = %d, tickadj = %d, profhz = %d, stathz = %d }",
|
printf("{ hz = %d, tick = %d, profhz = %d, stathz = %d }",
|
||||||
ci->hz, ci->tick, ci->tickadj, ci->profhz, ci->stathz);
|
ci->hz, ci->tick, ci->profhz, ci->stathz);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -484,7 +484,6 @@ sysctl_kern_clockrate(SYSCTL_HANDLER_ARGS)
|
|||||||
*/
|
*/
|
||||||
clkinfo.hz = hz;
|
clkinfo.hz = hz;
|
||||||
clkinfo.tick = tick;
|
clkinfo.tick = tick;
|
||||||
clkinfo.tickadj = tickadj;
|
|
||||||
clkinfo.profhz = profhz;
|
clkinfo.profhz = profhz;
|
||||||
clkinfo.stathz = stathz ? stathz : hz;
|
clkinfo.stathz = stathz ? stathz : hz;
|
||||||
return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
|
return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
|
||||||
|
@ -262,7 +262,6 @@ struct itimerval {
|
|||||||
struct clockinfo {
|
struct clockinfo {
|
||||||
int hz; /* clock frequency */
|
int hz; /* clock frequency */
|
||||||
int tick; /* micro-seconds per hz tick */
|
int tick; /* micro-seconds per hz tick */
|
||||||
int tickadj; /* clock skew rate for adjtime() */
|
|
||||||
int stathz; /* statistics clock frequency */
|
int stathz; /* statistics clock frequency */
|
||||||
int profhz; /* profiling clock frequency */
|
int profhz; /* profiling clock frequency */
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user