kern_timeout.c (9759) | kern_timeout.c (10358) |
---|---|
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.13 1995/05/30 08:05:20 rgrimes Exp $ | 39 * $Id: kern_clock.c,v 1.14 1995/07/29 11:40:12 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 * --- 22 unchanged lines hidden (view full) --- 70 71#include <machine/cpu.h> 72#include <machine/clock.h> 73 74#ifdef GPROF 75#include <sys/gmon.h> 76#endif 77 | 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 * --- 22 unchanged lines hidden (view full) --- 70 71#include <machine/cpu.h> 72#include <machine/clock.h> 73 74#ifdef GPROF 75#include <sys/gmon.h> 76#endif 77 |
78/* 79 * System initialization 80 */ 81 82static void initclocks __P(( caddr_t udata)); 83SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) 84 85 |
|
78/* Does anybody else really care about these? */ 79struct callout *callfree, *callout, calltodo; 80 81/* Some of these don't belong here, but it's easiest to concentrate them. */ 82long cp_time[CPUSTATES]; 83long dk_seek[DK_NDRIVE]; 84long dk_time[DK_NDRIVE]; 85long dk_wds[DK_NDRIVE]; --- 292 unchanged lines hidden (view full) --- 378 time_freq = -time_tolerance; 379} 380 381 382 383/* 384 * Initialize clock frequencies and start both clocks running. 385 */ | 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]; 91long dk_seek[DK_NDRIVE]; 92long dk_time[DK_NDRIVE]; 93long dk_wds[DK_NDRIVE]; --- 292 unchanged lines hidden (view full) --- 386 time_freq = -time_tolerance; 387} 388 389 390 391/* 392 * Initialize clock frequencies and start both clocks running. 393 */ |
386void 387initclocks() | 394/* ARGSUSED*/ 395static void 396initclocks( udata) 397caddr_t udata; /* not used*/ |
388{ 389 register int i; 390 391 /* 392 * Set divisors to 1 (normal case) and let the machine-specific 393 * code do its bit. 394 */ 395 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 --- |