svn commit: r196274 - head/sys/dev/usb
Andrew Thompson
andy at fud.org.nz
Mon Aug 17 16:48:07 UTC 2009
On 16/08/2009, at 16:13, Andrew Thompson <thompsa at 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
More information about the svn-src-head
mailing list