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

nit

上级 5aaaa6b1
......@@ -11,4 +11,4 @@
#define PHYSTOP 0x1000000 // use phys mem up to here as free pool
#define MAXARG 32 // max exec arguments
#define MAXNAME 16 // max string names
#define MTHRESHOLD 1000000 // min cycles a proc executes on a core before allowed to be stolen
#define MINCYCTHRESH 1000000 // min cycles a proc executes on a core before allowed to be stolen
......@@ -365,7 +365,7 @@ steal(void)
STAILQ_FOREACH(p, &runqs[c].runq, run_next) {
if (p->state != RUNNABLE)
panic("non-runnable proc on runq");
if (p->curcycles > MTHRESHOLD) {
if (p->curcycles > MINCYCTHRESH) {
cprintf("%d: steal %d (%d) from %d\n", cpunum(), p->pid, p->curcycles, c);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论