DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 May 2004 01:37:34 -0700 (PDT)

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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]