Deleted Added
full compact
kern_clocksource.c (215701) kern_clocksource.c (217326)
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/kern_clocksource.c 215701 2010-11-22 19:32:54Z dim $");
28__FBSDID("$FreeBSD: head/sys/kern/kern_clocksource.c 217326 2011-01-12 19:54:19Z mdf $");
29
30/*
31 * Common routines to manage event timers hardware.
32 */
33
34/* XEN has own timer routines now. */
35#ifndef XEN
36

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

109
110static int singlemul = 0; /* Multiplier for periodic mode. */
111TUNABLE_INT("kern.eventtimer.singlemul", &singlemul);
112SYSCTL_INT(_kern_eventtimer, OID_AUTO, singlemul, CTLFLAG_RW, &singlemul,
113 0, "Multiplier for periodic mode");
114
115static u_int idletick = 0; /* Idle mode allowed. */
116TUNABLE_INT("kern.eventtimer.idletick", &idletick);
29
30/*
31 * Common routines to manage event timers hardware.
32 */
33
34/* XEN has own timer routines now. */
35#ifndef XEN
36

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

109
110static int singlemul = 0; /* Multiplier for periodic mode. */
111TUNABLE_INT("kern.eventtimer.singlemul", &singlemul);
112SYSCTL_INT(_kern_eventtimer, OID_AUTO, singlemul, CTLFLAG_RW, &singlemul,
113 0, "Multiplier for periodic mode");
114
115static u_int idletick = 0; /* Idle mode allowed. */
116TUNABLE_INT("kern.eventtimer.idletick", &idletick);
117SYSCTL_INT(_kern_eventtimer, OID_AUTO, idletick, CTLFLAG_RW, &idletick,
117SYSCTL_UINT(_kern_eventtimer, OID_AUTO, idletick, CTLFLAG_RW, &idletick,
118 0, "Run periodic events when idle");
119
120static int periodic = 0; /* Periodic or one-shot mode. */
121static int want_periodic = 0; /* What mode to prefer. */
122TUNABLE_INT("kern.eventtimer.periodic", &want_periodic);
123
124struct pcpu_state {
125 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */

--- 778 unchanged lines hidden ---
118 0, "Run periodic events when idle");
119
120static int periodic = 0; /* Periodic or one-shot mode. */
121static int want_periodic = 0; /* What mode to prefer. */
122TUNABLE_INT("kern.eventtimer.periodic", &want_periodic);
123
124struct pcpu_state {
125 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */

--- 778 unchanged lines hidden ---