cvs commit: src/sys/sys thread.h src/sys/kern lwkt_thread.c

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 28 01:38:37 PDT 2004


dillon      2004/05/28 01:37:34 PDT

DragonFly src repository

  Modified files:
    sys/sys              thread.h 
    sys/kern             lwkt_thread.c 
  Log:
  Add lwkt_setcpu_self(), a function which migrates the current thread to
  the specified cpu.  This will soon be used by sysctl_kern_proc() to
  collect thread information across all available cpus (because it is only
  legal to manipulate a thread on the cpu it belongs to).
  
  Yes, you heard that right and, yes, the overhead is nasty... one whole
  microsecond per cpu at least, possibly even two.  But who cares for
  something like 'ps'?
  
  In-conversation-with: Hiten Pandya <hmp at xxxxxxxxxxx>
  
  Revision  Changes    Path
  1.52      +2 -0      src/sys/sys/thread.h
  1.61      +64 -3     src/sys/kern/lwkt_thread.c


http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread.h.diff?r1=1.51&r2=1.52&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.60&r2=1.61&f=h





More information about the Commits mailing list