kern_clock.c (e4fc250c15768b8e203496ee908dedb37846ea4f) kern_clock.c (af1408e33f6f7a5a5fc49bd4a67cb8368c2d1ede)
1/*-
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 479 unchanged lines hidden (view full) ---

488 clkinfo.tick = tick;
489 clkinfo.tickadj = tickadj;
490 clkinfo.profhz = profhz;
491 clkinfo.stathz = stathz ? stathz : hz;
492 return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
493}
494
495SYSCTL_PROC(_kern, KERN_CLOCKRATE, clockrate, CTLTYPE_STRUCT|CTLFLAG_RD,
1/*-
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 479 unchanged lines hidden (view full) ---

488 clkinfo.tick = tick;
489 clkinfo.tickadj = tickadj;
490 clkinfo.profhz = profhz;
491 clkinfo.stathz = stathz ? stathz : hz;
492 return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
493}
494
495SYSCTL_PROC(_kern, KERN_CLOCKRATE, clockrate, CTLTYPE_STRUCT|CTLFLAG_RD,
496 0, 0, sysctl_kern_clockrate, "S,clockinfo","");
496 0, 0, sysctl_kern_clockrate, "S,clockinfo",
497 "Rate and period of various kernel clocks");