On 16/08/2009, at 16:13, Andrew Thompson <thom...@freebsd.org> wrote:

Author: thompsa
Date: Sun Aug 16 14:13:55 2009
New Revision: 196274
URL: http://svn.freebsd.org/changeset/base/196274

Log:
Change the usb workers from kernel processes to threads, this is mostly a
 cosmetic change to reduce cruft in the proc table.

Modified: head/sys/dev/usb/usb_process.c
=== === === ===================================================================== --- head/sys/dev/usb/usb_process.c Sun Aug 16 10:25:58 2009 (r196273) +++ head/sys/dev/usb/usb_process.c Sun Aug 16 14:13:55 2009 (r196274)
@@ -63,10 +63,12 @@
#endif

#if (__FreeBSD_version >= 800000)
+static struct proc *usbproc;
#define    USB_THREAD_CREATE(f, s, p, ...) \
-        kproc_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
+        kproc_kthread_add((f), (s), &usbproc, (p), RFHIGHPID, \
+            0, "usb", __VA_ARGS__)

This could also be a nice tidyup for zfs which creates quite a few procs.

cheers,
Andrew
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to