aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-03-13 18:51:33 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-03-13 18:51:33 +0000
commit638fa5a36fb6cd2f8fa74a9230e57507dcb713cd (patch)
tree2fc6d349b851dfa44235d72efdd213c38e80e123 /sys/compat/linuxkpi/common/include/linux/sched.h
parent845a91ce0b98d046925e922dd49df22c4c027fd7 (diff)
downloadsrc-638fa5a36fb6cd2f8fa74a9230e57507dcb713cd.tar.gz
src-638fa5a36fb6cd2f8fa74a9230e57507dcb713cd.zip
Implement current_exiting() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=345098
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/sched.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index d0a5fde27cda..2805dd3b3484 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -143,6 +143,11 @@ linux_schedule_save_interrupt_value(struct task_struct *task, int value)
task->bsd_interrupt_value = value;
}
+bool linux_task_exiting(struct task_struct *task);
+
+#define current_exiting() \
+ linux_task_exiting(current)
+
static inline int
linux_schedule_get_interrupt_value(struct task_struct *task)
{