cvs commit: src/sys/kern sched_ule.c

John Baldwin jhb at FreeBSD.org
Thu Jul 8 14:45:05 PDT 2004


jhb         2004-07-08 21:45:04 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sched_ule.c 
  Log:
  - Move contents of sched_add() into a sched_add_internal() function that
    takes an argument to specify if it should preempt or not.  Don't preempt
    when sched_add_internal() is called from kseq_idled() or kseq_assign()
    as in those cases we are about to call mi_switch() anyways.  Also, doing
    so during the first context switch on an AP leads to a NULL pointer deref
    because curthread is NULL.
  - Reenable preemption for ULE.
  
  Submitted by:   Taku YAMAMOTO taku at tackymt.homeip.net
  
  Revision  Changes    Path
  1.114     +11 -5     src/sys/kern/sched_ule.c


More information about the cvs-all mailing list