mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
linuxkpi: more precise need_resched() definition
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35888
This commit is contained in:
parent
4a662c9064
commit
f04f3afbf5
1 changed files with 2 additions and 1 deletions
|
|
@ -130,7 +130,8 @@ put_task_struct(struct task_struct *task)
|
|||
#define yield() kern_yield(PRI_UNCHANGED)
|
||||
#define sched_yield() sched_relinquish(curthread)
|
||||
|
||||
#define need_resched() td_ast_pending(curthread, TDA_SCHED)
|
||||
#define need_resched() (curthread->td_owepreempt || \
|
||||
td_ast_pending(curthread, TDA_SCHED))
|
||||
|
||||
static inline int
|
||||
cond_resched_lock(spinlock_t *lock)
|
||||
|
|
|
|||
Loading…
Reference in a new issue