Remove PUSER entirely. Since p_priority has nothing to do with kernel
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 16 Oct 2003 23:59:15 +0000 (23:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 16 Oct 2003 23:59:15 +0000 (23:59 +0000)
commit49d5064312b4e36b8a5dad4e8cb6f6d7b236170d
treeb3b0e341a8de18f5cbd885ce56860a9127c9c214
parent9ae9ee8d77c99531670a40a968f1ccccaf982247
Remove PUSER entirely.  Since p_priority has nothing to do with kernel
thread priorities, the userland scheduler can now use the entire range 0-127.

Document the estcpu and other macros related to the p_priority calculation.

Adjust the default values such that a cpu bound nice -20 process will not
completely starve a nice +0 process (though it gets close!).  Note that a
nice +2 process will not run at all in the face of a cpu bound nice -20
process.
sys/kern/kern_synch.c
sys/sys/param.h
sys/sys/proc.h