kern_clock.c (111585) | kern_clock.c (111888) |
---|---|
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 * $FreeBSD: head/sys/kern/kern_clock.c 111585 2003-02-27 02:05:19Z julian $ | 39 * $FreeBSD: head/sys/kern/kern_clock.c 111888 2003-03-04 23:19:55Z jlemon $ |
40 */ 41 42#include "opt_ntp.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/callout.h> 47#include <sys/kernel.h> --- 17 unchanged lines hidden (view full) --- 65#include <machine/cpu.h> 66#include <machine/limits.h> 67 68#ifdef GPROF 69#include <sys/gmon.h> 70#endif 71 72#ifdef DEVICE_POLLING | 40 */ 41 42#include "opt_ntp.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/callout.h> 47#include <sys/kernel.h> --- 17 unchanged lines hidden (view full) --- 65#include <machine/cpu.h> 66#include <machine/limits.h> 67 68#ifdef GPROF 69#include <sys/gmon.h> 70#endif 71 72#ifdef DEVICE_POLLING |
73extern void init_device_poll(void); | |
74extern void hardclock_device_poll(void); 75#endif /* DEVICE_POLLING */ 76 77static void initclocks(void *dummy); 78SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) 79 80/* Some of these don't belong here, but it's easiest to concentrate them. */ 81long cp_time[CPUSTATES]; --- 50 unchanged lines hidden (view full) --- 132 register int i; 133 134 /* 135 * Set divisors to 1 (normal case) and let the machine-specific 136 * code do its bit. 137 */ 138 cpu_initclocks(); 139 | 73extern void hardclock_device_poll(void); 74#endif /* DEVICE_POLLING */ 75 76static void initclocks(void *dummy); 77SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) 78 79/* Some of these don't belong here, but it's easiest to concentrate them. */ 80long cp_time[CPUSTATES]; --- 50 unchanged lines hidden (view full) --- 131 register int i; 132 133 /* 134 * Set divisors to 1 (normal case) and let the machine-specific 135 * code do its bit. 136 */ 137 cpu_initclocks(); 138 |
140#ifdef DEVICE_POLLING 141 init_device_poll(); 142#endif | |
143 /* 144 * Compute profhz/stathz, and fix profhz if needed. 145 */ 146 i = stathz ? stathz : hz; 147 if (profhz == 0) 148 profhz = i; 149 psratio = profhz / i; 150} --- 337 unchanged lines hidden --- | 139 /* 140 * Compute profhz/stathz, and fix profhz if needed. 141 */ 142 i = stathz ? stathz : hz; 143 if (profhz == 0) 144 profhz = i; 145 psratio = profhz / i; 146} --- 337 unchanged lines hidden --- |