Deleted Added
full compact
kern_clock.c (256281) kern_clock.c (260817)
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: stable/10/sys/kern/kern_clock.c 252342 2013-06-28 15:55:30Z rstone $");
38__FBSDID("$FreeBSD: stable/10/sys/kern/kern_clock.c 260817 2014-01-17 10:58:59Z avg $");
39
40#include "opt_kdb.h"
41#include "opt_device_polling.h"
42#include "opt_hwpmc_hooks.h"
43#include "opt_kdtrace.h"
44#include "opt_ntp.h"
45#include "opt_watchdog.h"
46

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

88
89static void initclocks(void *dummy);
90SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL);
91
92/* Spin-lock protecting profiling statistics. */
93static struct mtx time_lock;
94
95SDT_PROVIDER_DECLARE(sched);
39
40#include "opt_kdb.h"
41#include "opt_device_polling.h"
42#include "opt_hwpmc_hooks.h"
43#include "opt_kdtrace.h"
44#include "opt_ntp.h"
45#include "opt_watchdog.h"
46

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

88
89static void initclocks(void *dummy);
90SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL);
91
92/* Spin-lock protecting profiling statistics. */
93static struct mtx time_lock;
94
95SDT_PROVIDER_DECLARE(sched);
96SDT_PROBE_DEFINE2(sched, , , tick, tick, "struct thread *", "struct proc *");
96SDT_PROBE_DEFINE2(sched, , , tick, "struct thread *", "struct proc *");
97
98static int
99sysctl_kern_cp_time(SYSCTL_HANDLER_ARGS)
100{
101 int error;
102 long cp_time[CPUSTATES];
103#ifdef SCTL_MASK32
104 int i;

--- 791 unchanged lines hidden ---
97
98static int
99sysctl_kern_cp_time(SYSCTL_HANDLER_ARGS)
100{
101 int error;
102 long cp_time[CPUSTATES];
103#ifdef SCTL_MASK32
104 int i;

--- 791 unchanged lines hidden ---