提交 5a376f5f 创建 作者: Frans Kaashoek's avatar Frans Kaashoek

remove dead code

上级 3eb536c5
...@@ -389,23 +389,6 @@ scheduler(void) ...@@ -389,23 +389,6 @@ scheduler(void)
acquire(&runq->lock); acquire(&runq->lock);
} }
release(&runq->lock); release(&runq->lock);
#if 0
struct proc *q
for (p = &ptable->proc[0]; p < &ptable->proc[NPROC]; p++) {
if (p->state == RUNNABLE) {
// XXX check all runqueue
for(q = ptable->runq; q != 0; q = q->next) {
if (p == q)
break;
}
if (q == 0) {
procdumpall();
panic("scheduler proc runnable but not on runqueue\n");
}
}
}
#endif
steal(); steal();
} }
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论