svn commit: r325733 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Sun Nov 12 02:34:35 UTC 2017
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
More information about the svn-src-all
mailing list