cvs commit: src/sys/kern sched_ule.c

Jeff Roberson jeff at
Fri Jan 5 00:50:38 PST 2007

jeff        2007-01-05 08:50:38 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sched_ule.c 
   - 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
   - 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.
  Revision  Changes    Path
  1.174     +35 -9     src/sys/kern/sched_ule.c

More information about the cvs-all mailing list