]> Zhao Yanbai Git Server - minix.git/commitdiff
Sanity check in clock - process is supposed to be runnable when it's
authorBen Gras <ben@minix3.org>
Thu, 8 Feb 2007 12:59:29 +0000 (12:59 +0000)
committerBen Gras <ben@minix3.org>
Thu, 8 Feb 2007 12:59:29 +0000 (12:59 +0000)
interrupted.

kernel/clock.c

index 838f8959fcfb56aac1f39cb6ed3fbcb9c3ee9aa5..82ef34905244fe0cf83624d97df4921813500f59 100755 (executable)
@@ -109,6 +109,9 @@ message *m_ptr;                             /* pointer to request message */
       if(prev_ptr->p_rts_flags == 0) { /* if it was runnable .. */
        lock_dequeue(prev_ptr);         /* take it off the queues */
        lock_enqueue(prev_ptr);         /* and reinsert it again */ 
+      } else {
+       kprintf("CLOCK: %d not runnable; flags: %x\n",
+               prev_ptr->p_endpoint, prev_ptr->p_rts_flags);
       }
   }