Deleted Added
full compact
kern_clock.c (215317) kern_clock.c (215701)
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.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
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.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 215317 2010-11-14 20:38:11Z dim $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 215701 2010-11-22 19:32:54Z dim $");
39
40#include "opt_kdb.h"
41#include "opt_device_polling.h"
42#include "opt_hwpmc_hooks.h"
43#include "opt_ntp.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

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

368 */
369
370int stathz;
371int profhz;
372int profprocs;
373int ticks;
374int psratio;
375
39
40#include "opt_kdb.h"
41#include "opt_device_polling.h"
42#include "opt_hwpmc_hooks.h"
43#include "opt_ntp.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

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

368 */
369
370int stathz;
371int profhz;
372int profprocs;
373int ticks;
374int psratio;
375
376STATIC_DPCPU_DEFINE(int, pcputicks); /* Per-CPU version of ticks. */
376static DPCPU_DEFINE(int, pcputicks); /* Per-CPU version of ticks. */
377static int global_hardclock_run = 0;
378
379/*
380 * Initialize clock frequencies and start both clocks running.
381 */
382/* ARGSUSED*/
383static void
384initclocks(dummy)

--- 476 unchanged lines hidden ---
377static int global_hardclock_run = 0;
378
379/*
380 * Initialize clock frequencies and start both clocks running.
381 */
382/* ARGSUSED*/
383static void
384initclocks(dummy)

--- 476 unchanged lines hidden ---