svn commit: r316564 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Apr 6 10:29:55 UTC 2017
Author: hselasky
Date: Thu Apr 6 10:29:54 2017
New Revision: 316564
URL: https://svnweb.freebsd.org/changeset/base/316564
Log:
Implement need_resched() in the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/compat/linuxkpi/common/include/linux/sched.h
Modified: head/sys/compat/linuxkpi/common/include/linux/sched.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/sched.h Thu Apr 6 10:26:03 2017 (r316563)
+++ head/sys/compat/linuxkpi/common/include/linux/sched.h Thu Apr 6 10:29:54 2017 (r316564)
@@ -145,4 +145,6 @@ schedule_timeout(signed long timeout)
return 0;
}
+#define need_resched() (curthread->td_flags & TDF_NEEDRESCHED)
+
#endif /* _LINUX_SCHED_H_ */
More information about the svn-src-all
mailing list