Kernel: wakeup() now uses pwake() function
authorWill Sowerbutts <will@sowerbutts.com>
Fri, 20 Feb 2015 21:20:36 +0000 (21:20 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Fri, 20 Feb 2015 21:35:58 +0000 (21:35 +0000)
Kernel/process.c

index d7d322a..493c348 100644 (file)
@@ -67,9 +67,7 @@ void wakeup(void *event)
                        kprintf("wakeup: found proc 0x%x pid %d\n",
                                p, p->p_pid);
 #endif
-                       p->p_status = P_READY;
-                       p->p_wait = NULL;
-                       nready++;
+                       pwake(p);
                }
        }
        irqrestore(irq);