Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 21:45:04 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sched_ule.c
Message-ID:  <200407082145.i68Lj4DT028466@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407082145.i68Lj4DT028466>