cvs commit: src/sys/sys sched.h src/sys/posix4 ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c

[ Available lists | Index of cvs-src | Month of Jun 2006 | Week of 15 Jun 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
David Xu <davidxu@FreeBSD.org>
Date
15 Jun 2006 06:37:40
Subject
cvs commit: src/sys/sys sched.h src/sys/posix4 ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c
Message-ID
200606150637.k5F6bdax000157@repoman.freebsd.org


[ Hide this part ]
davidxu     2006-06-15 06:37:39 UTC

FreeBSD src repository

Modified files:
sys/sys sched.h
sys/posix4 ksched.c
sys/kern sched_4bsd.c sched_core.c sched_ule.c
Log:
Add scheduler API sched_relinquish(), the API is used to implement
yield() and sched_yield() syscalls. Every scheduler has its own way
to relinquish cpu, the ULE and CORE schedulers have two internal run-
queues, a timesharing thread which calls yield() syscall should be
moved to inactive queue.

Revision Changes Path
1.83 +15 -0 src/sys/kern/sched_4bsd.c
1.5 +15 -0 src/sys/kern/sched_core.c
1.164 +13 -0 src/sys/kern/sched_ule.c
1.29 +1 -3 src/sys/posix4/ksched.c
1.26 +1 -0 src/sys/sys/sched.h


Elapsed time: 0.089 seconds