Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2008 11:20:30 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys callout.h src/sys/kern kern_clock.c kern_intr.c kern_timeout.c
Message-ID:  <200804021120.m32BKUYX089976@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2008-04-02 11:20:30 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              callout.h 
    sys/kern             kern_clock.c kern_intr.c kern_timeout.c 
  Log:
  Implement per-cpu callout threads, wheels, and locks.
  
   - Move callout thread creation from kern_intr.c to kern_timeout.c
   - Call callout_tick() on every processor via hardclock_cpu() rather than
     inspecting callout internal details in kern_clock.c.
   - Remove callout implementation details from callout.h
   - Package up all of the global variables into a per-cpu callout structure.
   - Start one thread per-cpu.  Threads are not strictly bound.  They prefer
     to execute on the native cpu but may migrate temporarily if interrupts
     are starving callout processing.
   - Run all callouts by default in the thread for cpu0 to maintain current
     ordering and concurrency guarantees.  Many consumers may not properly
     handle concurrent execution.
   - The new callout_reset_on() api allows specifying a particular cpu to
     execute the callout on.  This may migrate a callout to a new cpu.
     callout_reset() schedules on the last assigned cpu while
     callout_reset_curcpu() schedules on the current cpu.
  
  Reviewed by:    phk
  Sponsored by:   Nokia
  
  Revision  Changes    Path
  1.209     +2 -23     src/sys/kern/kern_clock.c
  1.158     +14 -11    src/sys/kern/kern_intr.c
  1.112     +246 -124  src/sys/kern/kern_timeout.c
  1.33      +9 -7      src/sys/sys/callout.h



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