提交 9aa7b369 编写于 作者: I Ingo Molnar

sched: increase the resolution of smpnice

increase SMP-nice's resolution. This is needed by CFS to
implement SCHED_IDLE and cleaned up nice level support.

no behavioral changes.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 425e0968
......@@ -652,7 +652,14 @@ enum cpu_idle_type {
/*
* sched-domains (multiprocessor balancing) declarations:
*/
#define SCHED_LOAD_SCALE 128UL /* increase resolution of load */
/*
* Increase resolution of nice-level calculations:
*/
#define SCHED_LOAD_SHIFT 10
#define SCHED_LOAD_SCALE (1L << SCHED_LOAD_SHIFT)
#define SCHED_LOAD_SCALE_FUZZ (SCHED_LOAD_SCALE >> 5)
#ifdef CONFIG_SMP
#define SD_LOAD_BALANCE 1 /* Do load balancing on this domain. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册