From fc51649e319857da128f60f2ba94da1bf8eb7278 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky <hselasky@FreeBSD.org> Date: Thu, 6 Apr 2017 10:29:54 +0000 Subject: Implement need_resched() in the LinuxKPI. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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_ */ -- cgit v1.2.3