Author: mjg
Date: Sun Nov 12 02:34:33 2017
New Revision: 325733
URL: https://svnweb.freebsd.org/changeset/base/325733
Log:
Use passed thread pointer instead of curthread in sys_sched_yield
No functional changes.
Modified:
head/sys/kern/p1003_1b.c
Modified: head/sys/kern/p1003_1b.c
==============================================================================
--- head/sys/kern/p1003_1b.c Sun Nov 12 01:36:48 2017 (r325732)
+++ head/sys/kern/p1003_1b.c Sun Nov 12 02:34:33 2017 (r325733)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"