提交 d453331b 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

less noise about stealing, exposes more bugs

上级 752446ec
...@@ -357,7 +357,7 @@ steal(void) ...@@ -357,7 +357,7 @@ steal(void)
acquire(&runqs[c].lock); acquire(&runqs[c].lock);
SLIST_FOREACH(p, &runqs[c].runq, run_next) { SLIST_FOREACH(p, &runqs[c].runq, run_next) {
if (p->state == RUNNABLE) { if (p->state == RUNNABLE) {
cprintf("%d: steal %d from %d\n", cpunum(), p->pid, c); //cprintf("%d: steal %d from %d\n", cpunum(), p->pid, c);
delrun1(&runqs[c], p); delrun1(&runqs[c], p);
addrun(p); addrun(p);
r = 1; r = 1;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论