Deleted Added
full compact
kern_tc.c (91290) kern_tc.c (92723)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $FreeBSD: head/sys/kern/kern_tc.c 91290 2002-02-26 09:16:27Z phk $
9 * $FreeBSD: head/sys/kern/kern_tc.c 92723 2002-03-19 21:25:46Z alfred $
10 */
11
12#include "opt_ntp.h"
13
14#include <sys/param.h>
15#include <sys/timetc.h>
16#include <sys/malloc.h>
17#include <sys/kernel.h>

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

25 */
26#ifndef NTIMECOUNTER
27#define NTIMECOUNTER hz
28#endif
29
30static MALLOC_DEFINE(M_TIMECOUNTER, "timecounter",
31 "Timecounter stable storage");
32
10 */
11
12#include "opt_ntp.h"
13
14#include <sys/param.h>
15#include <sys/timetc.h>
16#include <sys/malloc.h>
17#include <sys/kernel.h>

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

25 */
26#ifndef NTIMECOUNTER
27#define NTIMECOUNTER hz
28#endif
29
30static MALLOC_DEFINE(M_TIMECOUNTER, "timecounter",
31 "Timecounter stable storage");
32
33static void tco_setscales __P((struct timecounter *tc));
34static __inline unsigned tco_delta __P((struct timecounter *tc));
33static void tco_setscales(struct timecounter *tc);
34static __inline unsigned tco_delta(struct timecounter *tc);
35
36time_t time_second;
37
38struct bintime boottimebin;
39struct timeval boottime;
40SYSCTL_STRUCT(_kern, KERN_BOOTTIME, boottime, CTLFLAG_RD,
41 &boottime, timeval, "System boottime");
42

--- 522 unchanged lines hidden ---
35
36time_t time_second;
37
38struct bintime boottimebin;
39struct timeval boottime;
40SYSCTL_STRUCT(_kern, KERN_BOOTTIME, boottime, CTLFLAG_RD,
41 &boottime, timeval, "System boottime");
42

--- 522 unchanged lines hidden ---