From c97ad5cdc75eb73e3cc38542ca3ba783574b0a7a Mon Sep 17 00:00:00 2001 From: akolb Date: Fri, 9 Mar 2007 15:55:28 -0800 Subject: PSARC/2004/402 CPU Caps 6327235 PSARC/2004/402 CPU caps 6464161 Dead KSLICE code should be removed 6514387 FX class contains dead code to keep list of member threads 6518395 kstat_zone_add performs KM_SLEEP allocation when it should not --- usr/src/uts/common/sys/proc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/sys/proc.h') diff --git a/usr/src/uts/common/sys/proc.h b/usr/src/uts/common/sys/proc.h index 9a0ba2cc37..02c414b4fc 100644 --- a/usr/src/uts/common/sys/proc.h +++ b/usr/src/uts/common/sys/proc.h @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -424,11 +424,12 @@ extern struct pid pid0; /* p0's pid */ /* stat codes */ #define SSLEEP 1 /* awaiting an event */ -#define SRUN 2 /* running */ +#define SRUN 2 /* runnable */ #define SZOMB 3 /* process terminated but not waited for */ #define SSTOP 4 /* process stopped by debugger */ #define SIDL 5 /* intermediate state in process creation */ #define SONPROC 6 /* process is being run on a processor */ +#define SWAIT 7 /* process is waiting to become runnable */ /* p_pidflag codes */ #define CLDPEND 0x0001 /* have yet to post a SIGCHLD to the parent */ @@ -639,6 +640,7 @@ extern void term_mstate(kthread_t *); extern void estimate_msacct(kthread_t *, hrtime_t); extern void disable_msacct(proc_t *); extern hrtime_t mstate_aggr_state(proc_t *, int); +extern hrtime_t mstate_thread_onproc_time(kthread_t *); extern void syscall_mstate(int, int); extern uint_t cpu_update_pct(kthread_t *, hrtime_t); -- cgit v1.2.3