Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2009 18:22:32 +0200
From:      Andrew Thompson <andy@fud.org.nz>
To:        "pjd@freebsd.org" <pjd@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r196274 - head/sys/dev/usb
Message-ID:  <CB866EB1-3F09-4B3F-8111-6137EE76A41D@fud.org.nz>
In-Reply-To: <200908161413.n7GEDuYN018862@svn.freebsd.org>
References:  <200908161413.n7GEDuYN018862@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16/08/2009, at 16:13, Andrew Thompson <thompsa@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB866EB1-3F09-4B3F-8111-6137EE76A41D>