Deleted Added
full compact
kern_timeout.c (29805) kern_timeout.c (31016)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
39 * $Id: kern_clock.c,v 1.41 1997/09/21 22:00:07 gibbs Exp $
39 * $Id: kern_clock.c,v 1.42 1997/09/24 16:39:16 gibbs Exp $
40 */
41
42/* Portions of this software are covered by the following: */
43/******************************************************************************
44 * *
45 * Copyright (c) David L. Mills 1993, 1994 *
46 * *
47 * Permission to use, copy, modify, and distribute this software and its *

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

449
450/*
451 * The real-time timer, interrupting hz times per second.
452 */
453void
454hardclock(frame)
455 register struct clockframe *frame;
456{
40 */
41
42/* Portions of this software are covered by the following: */
43/******************************************************************************
44 * *
45 * Copyright (c) David L. Mills 1993, 1994 *
46 * *
47 * Permission to use, copy, modify, and distribute this software and its *

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

449
450/*
451 * The real-time timer, interrupting hz times per second.
452 */
453void
454hardclock(frame)
455 register struct clockframe *frame;
456{
457 register struct callout *p1;
458 register struct proc *p;
459
460 p = curproc;
461 if (p) {
462 register struct pstats *pstats;
463
464 /*
465 * Run current process's virtual and profile time, as needed.

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

804}
805
806void
807untimeout(ftn, arg, handle)
808 timeout_t ftn;
809 void *arg;
810 struct callout_handle handle;
811{
457 register struct proc *p;
458
459 p = curproc;
460 if (p) {
461 register struct pstats *pstats;
462
463 /*
464 * Run current process's virtual and profile time, as needed.

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

803}
804
805void
806untimeout(ftn, arg, handle)
807 timeout_t ftn;
808 void *arg;
809 struct callout_handle handle;
810{
812 register struct callout *p, *t;
813 register int s;
814
815 /*
816 * Check for a handle that was initialized
817 * by callout_handle_init, but never used
818 * for a real timeout.
819 */
820 if (handle.callout == NULL)

--- 525 unchanged lines hidden ---
811 register int s;
812
813 /*
814 * Check for a handle that was initialized
815 * by callout_handle_init, but never used
816 * for a real timeout.
817 */
818 if (handle.callout == NULL)

--- 525 unchanged lines hidden ---