]> git.tue.mpg.de Git - paraslash.git/commitdiff
prebuffer: Use new sched helper functions.
authorAndre Noll <maan@systemlinux.org>
Tue, 12 Jan 2010 05:26:49 +0000 (06:26 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 12 Jan 2010 05:26:49 +0000 (06:26 +0100)
prebuffer_filter.c

index a83eacc9d7e53f627985f6cfdfc86eccb588fa47..7fea2dfccd978c001148e2721273114f7349d4c9 100644 (file)
@@ -49,13 +49,8 @@ static void prebuffer_pre_select(struct sched *s, struct task *t)
                tv_add(&tv, now, &ppd->barrier);
        }
        if (tv_diff(&ppd->barrier, now, &diff) < 0)
-               goto min_delay;
-       if (tv_diff(&diff, &s->timeout, NULL) < 0)
-               s->timeout = diff;
-       return;
-min_delay:
-       s->timeout.tv_sec = 0;
-       s->timeout.tv_usec = 1;
+               return sched_min_delay(s);
+       sched_request_timeout(&diff, s);
 }
 
 static void prebuffer_close(struct filter_node *fn)