idle clean up

上级 629447fc
...@@ -118,12 +118,10 @@ idleloop(void) ...@@ -118,12 +118,10 @@ idleloop(void)
idlem->heir = p; idlem->heir = p;
} }
// XXX(sbw) // XXX(sbw) what should be the policy here?
worked = uwq_trywork(); worked = uwq_trywork();
if (worked == 1) { if (worked == 1)
cprintf("did some work..\n");
break; break;
}
worked = wq_trywork(); worked = wq_trywork();
// If we are no longer the idle thread, exit // If we are no longer the idle thread, exit
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论