cvs commit: src/sys/kern sched_ule.c

Jeff Roberson jeff at FreeBSD.org
Wed Oct 15 00:47:08 PDT 2003


jeff        2003/10/15 00:47:07 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             sched_ule.c 
  Log:
   - If our user_pri doesn't match our actual priority our priority has been
     elevated either due to priority propagation or because we're in the
     kernel in either case, put us on the current queue so that we dont
     stop others from using important resources.  At some point the priority
     elevations from sleeping in the kernel should go away.
   - Remove an optimization in sched_userret().  Before we would only set
     NEEDRESCHED if there was something of a higher priority available.  This
     is a trivial optimization and it breaks priority propagation because it
     doesn't take threads which we may be blocking into account.  Notice that
     the thread which is blocking others gets up to one tick of cpu time before
     we honor this NEEDRESCHED in sched_clock().
  
  Revision  Changes    Path
  1.59      +10 -3     src/sys/kern/sched_ule.c


More information about the cvs-src mailing list