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_ */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"