Date: Wed, 3 Mar 2010 21:46:51 +0000 (UTC) From: Randall Stewart <rrs@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_resource.c ksched.c Message-ID: <201003032147.o23LlEhx004802@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rrs 2010-03-03 21:46:51 UTC
FreeBSD src repository
Modified files:
sys/kern kern_resource.c ksched.c
Log:
SVN rev 204670 on 2010-03-03 21:46:51Z by rrs
sched_getparam was just plain broke for time-share
processes. It did not return an error but instead
just let garbage be passed back. This I fix so
it actually properly translates the priority the
process is at to a posix's high means more priority.
I also fix it so that if the ULE scheduler has bumped
it up to a realtime process you get back a sane value
i.e. the highest priority (63 for time-share).
sched_setscheduler() had the setting of the
timeshare class priority disabled. With some notes
about rejecting the posix high numbers is greater
priority and use nice instead. This fix also
adjusts that to work, with the cavet that a t-s
process may well get bumped up or down i.e. the
setscheduler() will NOT change the nice value only
the current priority. I think this is reasonable
considering if the user wants to play with nice then
he can. At least all the posix'ish interfaces now
respond sanely.
MFC after: 3 weeks
Revision Changes Path
1.195 +8 -2 src/sys/kern/kern_resource.c
1.37 +19 -8 src/sys/kern/ksched.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003032147.o23LlEhx004802>
