cvs commit: src/sys/dev/acpica/Osd OsdSchedule.c src/sys/dev/em
if_em.c src/sys/kern subr_taskqueue.c src/sys/sys taskqueue.h
Scott Long
scottl at FreeBSD.org
Fri Jan 13 17:55:25 PST 2006
scottl 2006-01-14 01:55:24 UTC
FreeBSD src repository
Modified files:
sys/dev/acpica/Osd OsdSchedule.c
sys/dev/em if_em.c
sys/kern subr_taskqueue.c
sys/sys taskqueue.h
Log:
Add the following to the taskqueue api:
taskqueue_start_threads(struct taskqueue **, int count, int pri,
const char *name, ...);
This allows the creation of 1 or more threads that will service a single
taskqueue. Also rework the taskqueue_create() API to remove the API change
that was introduced a while back. Creating a taskqueue doesn't rely on
the presence of a process structure, and the proc mechanics are much better
encapsulated in taskqueue_start_threads(). Also clean up the
taskqueue_terminate() and taskqueue_free() functions to safely drain
pending tasks and remove all associated threads.
The TASKQUEUE_DEFINE and TASKQUEUE_DEFINE_THREAD macros have been changed
to use the new API, but drivers compiled against the old definitions will
still work. Thus, recompiling drivers is not a strict requirement.
Revision Changes Path
1.35 +1 -24 src/sys/dev/acpica/Osd/OsdSchedule.c
1.101 +3 -7 src/sys/dev/em/if_em.c
1.34 +56 -16 src/sys/kern/subr_taskqueue.c
1.16 +11 -13 src/sys/sys/taskqueue.h
More information about the cvs-src
mailing list