From 8d2a5b8c34e3864227489bba935a46be9018fbcc Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 24 Oct 2005 15:58:21 +0000 Subject: Revert previous change to this file. I accidentally committed while fixing spelling in a comment. --- sys/kern/subr_taskqueue.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'sys/kern/subr_taskqueue.c') diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 4ae91e734e16..9622098e3447 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -37,16 +37,9 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include -#include #include -int tq_in; -SYSCTL_INT(_kern, OID_AUTO, tq_in, CTLFLAG_RD, &tq_in, 0, ""); -int tq_out; -SYSCTL_INT(_kern, OID_AUTO, tq_out, CTLFLAG_RD, &tq_out, 0, ""); - static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues"); static void *taskqueue_giant_ih; static void *taskqueue_ih; @@ -173,9 +166,6 @@ taskqueue_enqueue(struct taskqueue *queue, struct task *task) return 0; } - getnanotime(&task->ta_queuetime); - tq_in++; - /* * Optimise the case when all tasks have the same priority. */ @@ -207,7 +197,6 @@ void taskqueue_run(struct taskqueue *queue) { struct task *task; - struct timespec tv; int owned, pending; owned = mtx_owned(&queue->tq_mutex); @@ -223,16 +212,8 @@ taskqueue_run(struct taskqueue *queue) pending = task->ta_pending; task->ta_pending = 0; queue->tq_running = task; - tq_out++; mtx_unlock(&queue->tq_mutex); - getnanotime(&tv); - timespecsub(&tv, &task->ta_queuetime); - if (tv.tv_nsec >= 0500000000) { - printf("taskqueue_run: warning, queue time of %d.%09ld " - "for context %p\n", tv.tv_sec, tv.tv_nsec, - task->ta_func); - } task->ta_func(task->ta_context, pending); mtx_lock(&queue->tq_mutex); -- cgit v1.2.3