aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/sched.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2017-04-06 10:29:54 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2017-04-06 10:29:54 +0000
commitfc51649e319857da128f60f2ba94da1bf8eb7278 (patch)
treed1081d5a6110ac6a75d1418f6dc6b89f794590c9 /sys/compat/linuxkpi/common/include/linux/sched.h
parent8402f058ad4e5ae6176dd7e8c87d3700fa3f1653 (diff)
downloadsrc-fc51649e319857da128f60f2ba94da1bf8eb7278.tar.gz
src-fc51649e319857da128f60f2ba94da1bf8eb7278.zip
Implement need_resched() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=316564
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/sched.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 677e18e3ff5d..840ecd7c7607 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -145,4 +145,6 @@ schedule_timeout(signed long timeout)
return 0;
}
+#define need_resched() (curthread->td_flags & TDF_NEEDRESCHED)
+
#endif /* _LINUX_SCHED_H_ */