kern_timeout.c (24117) | kern_timeout.c (25164) |
---|---|
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.34 1997/03/22 16:52:19 mpp Exp $ | 39 * $Id: kern_clock.c,v 1.35 1997/03/22 20:34:21 mpp 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 * --- 925 unchanged lines hidden (view full) --- 973 * so that we know how much of its real time was spent 974 * in ``non-process'' (i.e., interrupt) work. 975 */ 976 p = curproc; 977 if (CLKF_INTR(frame)) { 978 if (p != NULL) 979 p->p_iticks++; 980 cp_time[CP_INTR]++; | 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 * --- 925 unchanged lines hidden (view full) --- 973 * so that we know how much of its real time was spent 974 * in ``non-process'' (i.e., interrupt) work. 975 */ 976 p = curproc; 977 if (CLKF_INTR(frame)) { 978 if (p != NULL) 979 p->p_iticks++; 980 cp_time[CP_INTR]++; |
981 } else if (p != NULL) { | 981 } else if (p != NULL && !(p->p_flag & P_IDLEPROC)) { |
982 p->p_sticks++; 983 cp_time[CP_SYS]++; 984 } else 985 cp_time[CP_IDLE]++; 986 } 987 pscnt = psdiv; 988 989 /* --- 314 unchanged lines hidden --- | 982 p->p_sticks++; 983 cp_time[CP_SYS]++; 984 } else 985 cp_time[CP_IDLE]++; 986 } 987 pscnt = psdiv; 988 989 /* --- 314 unchanged lines hidden --- |