Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 19:14:02 +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/vm vm_zeroidle.c
Message-ID:  <200411051914.iA5JE2qc024473@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2004-11-05 19:14:02 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_zeroidle.c 
  Log:
  - 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.32      +5 -14     src/sys/vm/vm_zeroidle.c



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