Use passed thread pointer instead of curthread in sys_sched_yield

No functional changes.
This commit is contained in:
Mateusz Guzik 2017-11-12 02:34:33 +00:00
parent 8baaf913be
commit fe7979a12c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325733

View File

@ -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