cvs commit: src/sys/vm vm_zeroidle.c

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 7 Jan 2005 16:28:32 +0000 (UTC)
jhb         2005-01-07 16:28:32 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/vm               vm_zeroidle.c 
  Log:
  MFC 1.32 and 1.33:
  - Set the priority of the page zeroing thread using sched_prio() when the
    thread is created rather than adjusting the priority in the main
    function.  (kthread_create() should probably take the initial priority
    as an argument.)
  - Only yield the CPU in the !PREEMPTION case if there are any other
    runnable threads.  Yielding when there isn't anything else better to do
    just wastes time in pointless context switches (albeit while the system
    is idle.)
  
  Revision  Changes    Path
  1.26.2.5  +5 -15     src/sys/vm/vm_zeroidle.c
Received on Fri Jan 07 2005 - 16:28:32 UTC