From owner-cvs-all@FreeBSD.ORG Sat Jan 14 01:55:25 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FCE416A41F; Sat, 14 Jan 2006 01:55:25 +0000 (GMT) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FEE943D46; Sat, 14 Jan 2006 01:55:25 +0000 (GMT) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0E1tPAC013901; Sat, 14 Jan 2006 01:55:25 GMT (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0E1tPgc013900; Sat, 14 Jan 2006 01:55:25 GMT (envelope-from scottl) Message-Id: <200601140155.k0E1tPgc013900@repoman.freebsd.org> From: Scott Long Date: Sat, 14 Jan 2006 01:55:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 01:55:25 -0000 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