Deleted Added
full compact
kern_timeout.c (10358) kern_timeout.c (10653)
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.14 1995/07/29 11:40:12 bde Exp $
39 * $Id: kern_clock.c,v 1.15 1995/08/28 09:18:43 julian 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 *

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

74#ifdef GPROF
75#include <sys/gmon.h>
76#endif
77
78/*
79 * System initialization
80 */
81
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 *

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

74#ifdef GPROF
75#include <sys/gmon.h>
76#endif
77
78/*
79 * System initialization
80 */
81
82static void initclocks __P(( caddr_t udata));
82static void initclocks __P((void *udata));
83SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
84
85
86/* Does anybody else really care about these? */
87struct callout *callfree, *callout, calltodo;
88
89/* Some of these don't belong here, but it's easiest to concentrate them. */
90long cp_time[CPUSTATES];

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

388
389
390
391/*
392 * Initialize clock frequencies and start both clocks running.
393 */
394/* ARGSUSED*/
395static void
83SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
84
85
86/* Does anybody else really care about these? */
87struct callout *callfree, *callout, calltodo;
88
89/* Some of these don't belong here, but it's easiest to concentrate them. */
90long cp_time[CPUSTATES];

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

388
389
390
391/*
392 * Initialize clock frequencies and start both clocks running.
393 */
394/* ARGSUSED*/
395static void
396initclocks( udata)
397caddr_t udata; /* not used*/
396initclocks(udata)
397 void *udata; /* not used*/
398{
399 register int i;
400
401 /*
402 * Set divisors to 1 (normal case) and let the machine-specific
403 * code do its bit.
404 */
405 psdiv = pscnt = 1;

--- 756 unchanged lines hidden ---
398{
399 register int i;
400
401 /*
402 * Set divisors to 1 (normal case) and let the machine-specific
403 * code do its bit.
404 */
405 psdiv = pscnt = 1;

--- 756 unchanged lines hidden ---