filter_common: Use sched_min_delay() helper.
authorAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 06:40:45 +0000 (07:40 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 06:40:45 +0000 (07:40 +0100)
filter_common.c

index 7af5ace..1317192 100644 (file)
@@ -133,9 +133,6 @@ void generic_filter_pre_select(struct sched *s, struct task *t)
        struct filter_node *fn = container_of(t, struct filter_node, task);
 
        t->error = 0;
-       if (btr_node_status(fn->btrn, fn->min_iqs, BTR_NT_INTERNAL) != 0) {
-               s->timeout.tv_sec = 0;
-               s->timeout.tv_usec = 1;
-       }
+       if (btr_node_status(fn->btrn, fn->min_iqs, BTR_NT_INTERNAL) != 0)
+               sched_min_delay(s);
 }
-