Associate a userland scheduler control structure with every process and
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 25 Jun 2005 20:03:34 +0000 (20:03 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 25 Jun 2005 20:03:34 +0000 (20:03 +0000)
commita77ac49d9c3c659edbb6bfd6f65c8cd3fe052936
treee2b980dfb7edda62c50a55b9c40b8d929daa1d11
parent0d1388798d306d5735b193b8ce3ca21de632b765
Associate a userland scheduler control structure with every process and
call userland scheduling functions through that structure.  Note that the
proc structure already had a field reserved for this purpose so it actually
doesn't change size.

The child of a fork() inherits the parent's userland scheduler control
structure pointer.

Move uio_yield() to a scheduler-independant file, and do some minor
cleanups of already #ifdef'd out code.

Repo-Rename usched_4bsd.c to usched_bsd4.c, so the file matches the function
prefixes I want to use.

Believe it or not, this should not represent any operational code changes
other then changing some previously direct function calls into indirect
calls through the new p_usched field in the process structure.
14 files changed:
sys/conf/files
sys/i386/i386/machdep.c
sys/i386/i386/trap.c
sys/kern/init_main.c
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_resource.c
sys/kern/kern_synch.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/i386/trap.c
sys/sys/proc.h
sys/sys/usched.h [new file with mode: 0644]
sys/vm/vm_glue.c
sys/vm/vm_pageout.c