Deleted Added
full compact
kern_clock.c (131436) kern_clock.c (131927)
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 131436 2004-07-02 03:48:09Z jhb $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 131927 2004-07-10 21:36:01Z marcel $");
39
40#include "opt_ntp.h"
39
40#include "opt_ntp.h"
41#include "opt_ddb.h"
42#include "opt_watchdog.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/callout.h>
41#include "opt_watchdog.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/callout.h>
46#include <sys/kdb.h>
47#include <sys/kernel.h>
48#include <sys/lock.h>
49#include <sys/ktr.h>
50#include <sys/mutex.h>
51#include <sys/proc.h>
52#include <sys/resource.h>
53#include <sys/resourcevar.h>
54#include <sys/sched.h>

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

64#include <sys/timetc.h>
65
66#include <machine/cpu.h>
67
68#ifdef GPROF
69#include <sys/gmon.h>
70#endif
71
47#include <sys/kernel.h>
48#include <sys/lock.h>
49#include <sys/ktr.h>
50#include <sys/mutex.h>
51#include <sys/proc.h>
52#include <sys/resource.h>
53#include <sys/resourcevar.h>
54#include <sys/sched.h>

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

64#include <sys/timetc.h>
65
66#include <machine/cpu.h>
67
68#ifdef GPROF
69#include <sys/gmon.h>
70#endif
71
72#ifdef DDB
73#include <ddb/ddb.h>
74#endif
75
76#ifdef DEVICE_POLLING
77extern void hardclock_device_poll(void);
78#endif /* DEVICE_POLLING */
79
80static void initclocks(void *dummy);
81SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
82
83/* Some of these don't belong here, but it's easiest to concentrate them. */

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

538 while (--nintr >= 0) {
539 if (*curintr)
540 printf("%-12s %20lu\n", curname, *curintr);
541 curname += strlen(curname) + 1;
542 inttotal += *curintr++;
543 }
544 printf("Total %20ju\n", (uintmax_t)inttotal);
545
72#ifdef DEVICE_POLLING
73extern void hardclock_device_poll(void);
74#endif /* DEVICE_POLLING */
75
76static void initclocks(void *dummy);
77SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
78
79/* Some of these don't belong here, but it's easiest to concentrate them. */

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

534 while (--nintr >= 0) {
535 if (*curintr)
536 printf("%-12s %20lu\n", curname, *curintr);
537 curname += strlen(curname) + 1;
538 inttotal += *curintr++;
539 }
540 printf("Total %20ju\n", (uintmax_t)inttotal);
541
546#ifdef DDB
547 db_print_backtrace();
548 Debugger("watchdog timeout");
549#else /* !DDB */
542#ifdef KDB
543 kdb_backtrace();
544 kdb_enter("watchdog timeout");
545#else
550 panic("watchdog timeout");
546 panic("watchdog timeout");
551#endif /* DDB */
547#endif /* KDB */
552}
553
554#endif /* SW_WATCHDOG */
548}
549
550#endif /* SW_WATCHDOG */