Deleted Added
full compact
kern_clock.c (12569) kern_clock.c (12623)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
39 * $Id: kern_clock.c,v 1.19 1995/11/12 19:51:48 phk Exp $
39 * $Id: kern_clock.c,v 1.20 1995/12/02 17:10:31 bde Exp $
40 */
41
42/* Portions of this software are covered by the following: */
43/******************************************************************************
44 * *
45 * Copyright (c) David L. Mills 1993, 1994 *
46 * *
47 * Permission to use, copy, modify, and distribute this software and its *

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

979 */
980 clkinfo.hz = hz;
981 clkinfo.tick = tick;
982 clkinfo.profhz = profhz;
983 clkinfo.stathz = stathz ? stathz : hz;
984 return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
985}
986
40 */
41
42/* Portions of this software are covered by the following: */
43/******************************************************************************
44 * *
45 * Copyright (c) David L. Mills 1993, 1994 *
46 * *
47 * Permission to use, copy, modify, and distribute this software and its *

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

979 */
980 clkinfo.hz = hz;
981 clkinfo.tick = tick;
982 clkinfo.profhz = profhz;
983 clkinfo.stathz = stathz ? stathz : hz;
984 return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
985}
986
987SYSCTL_OID(_kern, KERN_CLOCKRATE, clockrate,
988 CTLTYPE_STRUCT|CTLFLAG_RD, 0, 0, sysctl_kern_clockrate, "");
987SYSCTL_PROC(_kern, KERN_CLOCKRATE, clockrate, CTLTYPE_STRUCT|CTLFLAG_RD,
988 0, 0, sysctl_kern_clockrate, "S,clkinfo","");
989
990/*#ifdef PPS_SYNC*/
991#if 0
992/* This code is completely bogus; if anybody ever wants to use it, get
993 * the current version from Dave Mills. */
994
995/*
996 * hardpps() - discipline CPU clock oscillator to external pps signal

--- 160 unchanged lines hidden ---
989
990/*#ifdef PPS_SYNC*/
991#if 0
992/* This code is completely bogus; if anybody ever wants to use it, get
993 * the current version from Dave Mills. */
994
995/*
996 * hardpps() - discipline CPU clock oscillator to external pps signal

--- 160 unchanged lines hidden ---