PERFORCE change 44038 for review
John Baldwin
jhb at FreeBSD.org
Wed Dec 17 13:37:15 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=44038
Change 44038 by jhb at jhb_laptop on 2003/12/17 13:37:04
IFC just this file for now.
Affected files ...
.. //depot/projects/smpng/sys/kern/subr_taskqueue.c#14 integrate
Differences ...
==== //depot/projects/smpng/sys/kern/subr_taskqueue.c#14 (text+ko) ====
@@ -25,26 +25,24 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/kern/subr_taskqueue.c,v 1.20 2003/11/10 20:39:44 alfred Exp $");
+__FBSDID("$FreeBSD: src/sys/kern/subr_taskqueue.c,v 1.21 2003/12/17 21:13:04 jhb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/interrupt.h>
#include <sys/kernel.h>
+#include <sys/kthread.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
#include <sys/taskqueue.h>
-#include <sys/kthread.h>
#include <sys/unistd.h>
static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues");
-
+static void *taskqueue_giant_ih;
+static void *taskqueue_ih;
static STAILQ_HEAD(taskqueue_list, taskqueue) taskqueue_queues;
-
-static void *taskqueue_ih;
-static void *taskqueue_giant_ih;
static struct mtx taskqueue_queues_mutex;
static struct proc *taskqueue_thread_proc;
@@ -124,14 +122,14 @@
mtx_lock(&taskqueue_queues_mutex);
STAILQ_FOREACH(queue, &taskqueue_queues, tq_link) {
mtx_lock(&queue->tq_mutex);
- if (!strcmp(queue->tq_name, name)) {
+ if (strcmp(queue->tq_name, name) == 0) {
mtx_unlock(&taskqueue_queues_mutex);
return queue;
}
mtx_unlock(&queue->tq_mutex);
}
mtx_unlock(&taskqueue_queues_mutex);
- return 0;
+ return NULL;
}
int
More information about the p4-projects
mailing list