subr_clock.c (110299) | subr_clock.c (116182) |
---|---|
1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 26 unchanged lines hidden (view full) --- 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: Utah $Hdr: clock.c 1.18 91/01/21$ 39 * from: @(#)clock.c 8.2 (Berkeley) 1/12/94 40 * from: NetBSD: clock_subr.c,v 1.6 2001/07/07 17:04:02 thorpej Exp 41 * and 42 * from: src/sys/i386/isa/clock.c,v 1.176 2001/09/04 | 1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 26 unchanged lines hidden (view full) --- 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: Utah $Hdr: clock.c 1.18 91/01/21$ 39 * from: @(#)clock.c 8.2 (Berkeley) 1/12/94 40 * from: NetBSD: clock_subr.c,v 1.6 2001/07/07 17:04:02 thorpej Exp 41 * and 42 * from: src/sys/i386/isa/clock.c,v 1.176 2001/09/04 |
43 * 44 * $FreeBSD: head/sys/kern/subr_clock.c 110299 2003-02-03 19:49:35Z phk $ | |
45 */ 46 47/* 48 * Helpers for time-of-day clocks. This is useful for architectures that need 49 * support multiple models of such clocks, and generally serves to make the 50 * code more machine-independent. 51 * If the clock in question can also be used as a time counter, the driver 52 * needs to initiate this. 53 * This code is not yet used by all architectures. 54 */ 55 56/* 57 * Generic routines to convert between a POSIX date 58 * (seconds since 1/1/1970) and yr/mo/day/hr/min/sec 59 * Derived from NetBSD arch/hp300/hp300/clock.c 60 */ | 43 */ 44 45/* 46 * Helpers for time-of-day clocks. This is useful for architectures that need 47 * support multiple models of such clocks, and generally serves to make the 48 * code more machine-independent. 49 * If the clock in question can also be used as a time counter, the driver 50 * needs to initiate this. 51 * This code is not yet used by all architectures. 52 */ 53 54/* 55 * Generic routines to convert between a POSIX date 56 * (seconds since 1/1/1970) and yr/mo/day/hr/min/sec 57 * Derived from NetBSD arch/hp300/hp300/clock.c 58 */ |
59 60#include <sys/cdefs.h> 61__FBSDID("$FreeBSD: head/sys/kern/subr_clock.c 116182 2003-06-11 00:56:59Z obrien $"); 62 |
|
61#include <sys/param.h> 62#include <sys/systm.h> 63#include <sys/kernel.h> 64#include <sys/bus.h> 65#include <sys/clock.h> 66#include <sys/sysctl.h> 67#include <sys/timetc.h> 68 --- 251 unchanged lines hidden --- | 63#include <sys/param.h> 64#include <sys/systm.h> 65#include <sys/kernel.h> 66#include <sys/bus.h> 67#include <sys/clock.h> 68#include <sys/sysctl.h> 69#include <sys/timetc.h> 70 --- 251 unchanged lines hidden --- |