summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/proc.h
diff options
context:
space:
mode:
authorakolb <none@none>2007-03-09 15:55:28 -0800
committerakolb <none@none>2007-03-09 15:55:28 -0800
commitc97ad5cdc75eb73e3cc38542ca3ba783574b0a7a (patch)
tree5ba1653d892978d87d6061c8c7f3821f4b3e354c /usr/src/uts/common/sys/proc.h
parent68d3ac02fc9db49ae9dccaecff999963114930a7 (diff)
downloadillumos-gate-c97ad5cdc75eb73e3cc38542ca3ba783574b0a7a.tar.gz
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
Diffstat (limited to 'usr/src/uts/common/sys/proc.h')
-rw-r--r--usr/src/uts/common/sys/proc.h6
1 files changed, 4 insertions, 2 deletions
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);