kproc -> ktask
[akaros.git] / kern / src / net / tcp.c
index c6e0a54..474920b 100644 (file)
@@ -647,7 +647,7 @@ tcpackproc(void *a)
        priv = tcp->priv;
 
        for(;;) {
-               tsleep(&up->sleep, return0, 0, MSPTICK);
+               udelay_sched(MSPTICK * 1000);
 
                qlock(&priv->tl);
                timeo = nil;
@@ -738,7 +738,7 @@ localclose(Conv *s, char *reason)   /* called with tcb locked */
        if(tcb->state == Syn_sent)
                Fsconnected(s, reason);
        if(s->state == Announced)
-               wakeup(&s->listenr);
+               rendez_wakeup(&s->listenr);
 
        qhangup(s->rq, reason);
        qhangup(s->wq, reason);
@@ -866,7 +866,7 @@ tcpstart(Conv *s, int mode)
                qlock(&tpriv->apl);
                if(tpriv->ackprocstarted == 0){
                        sprint(kpname, "#I%dtcpack", s->p->f->dev);
-                       kproc(kpname, tcpackproc, s->p, 0);
+                       ktask(kpname, tcpackproc, s->p);
                        tpriv->ackprocstarted = 1;
                }
                qunlock(&tpriv->apl);