kern_ntptime.c (207362) | kern_ntptime.c (213305) |
---|---|
1/*- 2 *********************************************************************** 3 * * 4 * Copyright (c) David L. Mills 1993-2001 * 5 * * 6 * Permission to use, copy, modify, and distribute this software and * 7 * its documentation for any purpose and without fee is hereby * 8 * granted, provided that the above copyright notice appears in all * --- 17 unchanged lines hidden (view full) --- 26 * in this file. 27 * 28 * Only minor changes done to interface with the timecounters over in 29 * sys/kern/kern_clock.c. Some of the comments below may be (even more) 30 * confusing and/or plain wrong in that context. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 *********************************************************************** 3 * * 4 * Copyright (c) David L. Mills 1993-2001 * 5 * * 6 * Permission to use, copy, modify, and distribute this software and * 7 * its documentation for any purpose and without fee is hereby * 8 * granted, provided that the above copyright notice appears in all * --- 17 unchanged lines hidden (view full) --- 26 * in this file. 27 * 28 * Only minor changes done to interface with the timecounters over in 29 * sys/kern/kern_clock.c. Some of the comments below may be (even more) 30 * confusing and/or plain wrong in that context. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/kern/kern_ntptime.c 207362 2010-04-29 09:18:36Z avg $"); | 34__FBSDID("$FreeBSD: head/sys/kern/kern_ntptime.c 213305 2010-09-30 17:05:23Z avg $"); |
35 36#include "opt_ntp.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/sysproto.h> 41#include <sys/eventhandler.h> 42#include <sys/kernel.h> --- 987 unchanged lines hidden (view full) --- 1030 SHUTDOWN_PRI_FIRST); 1031 callout_init(&resettodr_callout, 1); 1032 if (resettodr_period == 0) 1033 return; 1034 callout_reset(&resettodr_callout, resettodr_period * hz, 1035 periodic_resettodr, NULL); 1036} 1037 | 35 36#include "opt_ntp.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/sysproto.h> 41#include <sys/eventhandler.h> 42#include <sys/kernel.h> --- 987 unchanged lines hidden (view full) --- 1030 SHUTDOWN_PRI_FIRST); 1031 callout_init(&resettodr_callout, 1); 1032 if (resettodr_period == 0) 1033 return; 1034 callout_reset(&resettodr_callout, resettodr_period * hz, 1035 periodic_resettodr, NULL); 1036} 1037 |
1038SYSINIT(periodic_resettodr, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY - 1, | 1038SYSINIT(periodic_resettodr, SI_SUB_RUN_SCHEDULER, SI_ORDER_MIDDLE, |
1039 start_periodic_resettodr, NULL); | 1039 start_periodic_resettodr, NULL); |