aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2021-07-31 13:32:52 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-07-31 13:36:48 +0000
commit469884cf04a9b92677c7c83e229ca6b8814f8b0a (patch)
treecb13a97a0cba8b3a9a83eabb0a1647b17a307fe5 /sys/compat/linuxkpi/common/include/linux/sched.h
parentf7f76c200a8c33822a25ae36e4399c9896efa951 (diff)
downloadsrc-469884cf04a9b92677c7c83e229ca6b8814f8b0a.tar.gz
src-469884cf04a9b92677c7c83e229ca6b8814f8b0a.zip
LinuxKPI: Make FPU sections thread-safe and use the NOCTX flag.
Reviewed by: kib Submitted by: greg@unrelenting.technology Differential Revision: https://reviews.freebsd.org/D29921 MFC after: 1 week Sponsored by: NVIDIA Networking
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/sched.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 937e9f27870c..5954b16f6496 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -82,7 +82,8 @@ struct task_struct {
int bsd_interrupt_value;
struct work_struct *work; /* current work struct, if set */
struct task_struct *group_leader;
- unsigned rcu_section[TS_RCU_TYPE_MAX];
+ unsigned rcu_section[TS_RCU_TYPE_MAX];
+ unsigned int fpu_ctx_level;
};
#define current ({ \