Date: Thu, 6 Apr 2017 10:29:54 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316564 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <201704061029.v36ATsW4097583@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704061029.v36ATsW4097583>