cvs commit: src/sys/kern kern_idle.c kern_intr.c kern_mutex.c kern_shutdown.c kern_sig.c kern_subr.c kern_synch.c kern_thread.c sched_4bsd.c sched_ule.c subr_sleepqueue.c subr_trap.c subr_turnstile.c src/sys/sys proc.h sched.h src/sys/vm ...

John Baldwin jhb at FreeBSD.org
Fri Jul 2 12:11:03 PDT 2004


jhb         2004-07-02 19:09:50 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_idle.c kern_intr.c kern_mutex.c 
                         kern_shutdown.c kern_sig.c kern_subr.c 
                         kern_synch.c kern_thread.c sched_4bsd.c 
                         sched_ule.c subr_sleepqueue.c subr_trap.c 
                         subr_turnstile.c 
    sys/sys              proc.h sched.h 
    sys/vm               vm_zeroidle.c 
  Log:
  - Change mi_switch() and sched_switch() to accept an optional thread to
    switch to.  If a non-NULL thread pointer is passed in, then the CPU will
    switch to that thread directly rather than calling choosethread() to pick
    a thread to choose to.
  - Make sched_switch() aware of idle threads and know to do
    TD_SET_CAN_RUN() instead of sticking them on the run queue rather than
    requiring all callers of mi_switch() to know to do this if they can be
    called from an idlethread.
  - Move constants for arguments to mi_switch() and thread_single() out of
    the middle of the function prototypes and up above into their own
    section.
  
  Revision  Changes    Path
  1.39      +2 -3      src/sys/kern/kern_idle.c
  1.110     +2 -2      src/sys/kern/kern_intr.c
  1.139     +1 -1      src/sys/kern/kern_mutex.c
  1.152     +1 -1      src/sys/kern/kern_shutdown.c
  1.282     +2 -2      src/sys/kern/kern_sig.c
  1.87      +1 -1      src/sys/kern/kern_subr.c
  1.251     +3 -3      src/sys/kern/kern_synch.c
  1.186     +2 -2      src/sys/kern/kern_thread.c
  1.42      +11 -6     src/sys/kern/sched_4bsd.c
  1.109     +9 -5      src/sys/kern/sched_ule.c
  1.10      +2 -2      src/sys/kern/subr_sleepqueue.c
  1.268     +1 -1      src/sys/kern/subr_trap.c
  1.145     +1 -1      src/sys/kern/subr_turnstile.c
  1.383     +11 -6     src/sys/sys/proc.h
  1.13      +1 -1      src/sys/sys/sched.h
  1.25      +1 -1      src/sys/vm/vm_zeroidle.c


More information about the cvs-all mailing list