kern_clock.c (5081) | kern_clock.c (7090) |
---|---|
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.10 1994/10/16 03:52:12 wollman Exp $ | 39 * $Id: kern_clock.c,v 1.11 1994/12/12 11:58:46 bde 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 * --- 362 unchanged lines hidden (view full) --- 410 */ 411void 412hardclock(frame) 413 register struct clockframe *frame; 414{ 415 register struct callout *p1; 416 register struct proc *p; 417 register int needsoft; | 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 * --- 362 unchanged lines hidden (view full) --- 410 */ 411void 412hardclock(frame) 413 register struct clockframe *frame; 414{ 415 register struct callout *p1; 416 register struct proc *p; 417 register int needsoft; |
418 extern int tickdelta; 419 extern long timedelta; | |
420 421 /* 422 * Update real-time timeout queue. 423 * At front of queue are some number of events which are ``due''. 424 * The time to these is <= 0 and if negative represents the 425 * number of ticks which have passed since it was supposed to happen. 426 * The rest of the q elements (times > 0) are events yet to happen, 427 * where the time for each is given as a delta from the previous. --- 727 unchanged lines hidden --- | 418 419 /* 420 * Update real-time timeout queue. 421 * At front of queue are some number of events which are ``due''. 422 * The time to these is <= 0 and if negative represents the 423 * number of ticks which have passed since it was supposed to happen. 424 * The rest of the q elements (times > 0) are events yet to happen, 425 * where the time for each is given as a delta from the previous. --- 727 unchanged lines hidden --- |