]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- ftick was initialized to -1 for init and any of it's children. Fix this by
authorjeff <jeff@FreeBSD.org>
Fri, 5 Jan 2007 08:50:38 +0000 (08:50 +0000)
committerjeff <jeff@FreeBSD.org>
Fri, 5 Jan 2007 08:50:38 +0000 (08:50 +0000)
commit47d8080afa94e572771c2ec629d2facff36638d8
tree5f30221b56a750e200c03711b0e839eed7734094
parentaeb763b099f97941d7b8aac8b7db1a173a9a2e62
 - ftick was initialized to -1 for init and any of it's children.  Fix this by
   setting ftick = ltick = ticks in schedinit().
 - Update the priority when we are pulled off of the run queue and when we
   are inserted onto the run queue so that it more accurately reflects our
   present status.  This is important for efficient priority propagation
   functioning.
 - Move the frequency test into sched_pctcpu_update() so we don't repeat it
   each time we'd like to call it.
 - Put some temporary work-around code in sched_priority() in case the tick
   mechanism produces a bad priority.  Eventually this should revert to an
   assert again.
sys/kern/sched_ule.c