diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-04-06 10:29:54 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-04-06 10:29:54 +0000 |
commit | fc51649e319857da128f60f2ba94da1bf8eb7278 (patch) | |
tree | d1081d5a6110ac6a75d1418f6dc6b89f794590c9 | |
parent | 8402f058ad4e5ae6176dd7e8c87d3700fa3f1653 (diff) | |
download | src-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
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/sched.h | 2 |
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_ */ |