Use passed thread pointer instead of curthread in sys_sched_yield
No functional changes.
This commit is contained in:
parent
8baaf913be
commit
fe7979a12c
@ -292,8 +292,8 @@ int
|
||||
sys_sched_yield(struct thread *td, struct sched_yield_args *uap)
|
||||
{
|
||||
|
||||
sched_relinquish(curthread);
|
||||
return 0;
|
||||
sched_relinquish(td);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user