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

do rcu_gc even when not idle

上级 845e50fe
......@@ -546,13 +546,13 @@ scheduler(void)
}
}
if (idle[cpu->id]) {
int now = ticks;
if (now - cpu->last_rcu_gc_ticks > 100) {
rcu_gc();
cpu->last_rcu_gc_ticks = now;
}
int now = ticks;
if (now - cpu->last_rcu_gc_ticks > 100) {
rcu_gc();
cpu->last_rcu_gc_ticks = now;
}
if (idle[cpu->id]) {
sti();
hlt();
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论