summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/thread.h
diff options
context:
space:
mode:
authorDan McDonald <danmcd@mnx.io>2022-05-13 17:20:24 -0400
committerGitHub <noreply@github.com>2022-05-13 17:20:24 -0400
commitbb7d6c9b47695f41cbacbcf6662baf3d0e152fdf (patch)
tree75f2d0cab5fb92f97f2ab2c3186a0b5d1579a33a /usr/src/uts/common/sys/thread.h
parent8ca5534c77e93c25d2c1f777499b12da0f7cc0cd (diff)
parent402559e299331588f209b3a9693e3bcd6a83d22c (diff)
downloadillumos-joyent-OS-8149.tar.gz
Merge branch 'master' into OS-8149OS-8149
Diffstat (limited to 'usr/src/uts/common/sys/thread.h')
-rw-r--r--usr/src/uts/common/sys/thread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/thread.h b/usr/src/uts/common/sys/thread.h
index 3ecb7c00b0..3ca82366a0 100644
--- a/usr/src/uts/common/sys/thread.h
+++ b/usr/src/uts/common/sys/thread.h
@@ -25,7 +25,7 @@
*/
/*
- * Copyright 2019 Joyent, Inc.
+ * Copyright 2020 Joyent, Inc.
*/
#ifndef _SYS_THREAD_H
@@ -122,7 +122,7 @@ typedef struct _kthread {
struct cpu *t_bound_cpu; /* cpu bound to, or NULL if not bound */
short t_affinitycnt; /* nesting level of kernel affinity-setting */
short t_bind_cpu; /* user-specified CPU binding (-1 if none) */
- ushort_t t_flag; /* modified only by current thread */
+ uint_t t_flag; /* modified only by current thread */
ushort_t t_proc_flag; /* modified holding ttproc(t)->p_lock */
ushort_t t_schedflag; /* modified holding thread_lock(t) */
volatile char t_preempt; /* don't preempt thread if set */
@@ -384,6 +384,8 @@ typedef struct _kthread {
#define T_CAPTURING 0x2000 /* thread is in page capture logic */
#define T_VFPARENT 0x4000 /* thread is vfork parent, must call vfwait */
#define T_DONTDTRACE 0x8000 /* disable DTrace probes */
+#define T_KFPU 0x10000 /* kernel FPU active */
+#define T_PUSHPAGE 0x20000 /* this thread may be assisting pageout */
/*
* Flags in t_proc_flag.