]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 7af5ace6533aa88a85b5ea9c8295867192164af0..1317192006e44f2a0ce93aeb1b6c616db39fcb68 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);
 }
-