diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-07-09 12:51:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-07-09 12:51:58 -0400 |
commit | 9aa7b369819940cb1f3c74ba210516739a32ad95 (patch) | |
tree | 19f0e54740c52f143c5e88877fa75eefaf7b30ae /include/linux | |
parent | 425e0968a25fa3f111f9919964cac079738140b5 (diff) |
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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 61a111fe2b7a..d5084e7c48cf 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -652,7 +652,14 @@ enum cpu_idle_type { | |||
652 | /* | 652 | /* |
653 | * sched-domains (multiprocessor balancing) declarations: | 653 | * sched-domains (multiprocessor balancing) declarations: |
654 | */ | 654 | */ |
655 | #define SCHED_LOAD_SCALE 128UL /* increase resolution of load */ | 655 | |
656 | /* | ||
657 | * Increase resolution of nice-level calculations: | ||
658 | */ | ||
659 | #define SCHED_LOAD_SHIFT 10 | ||
660 | #define SCHED_LOAD_SCALE (1L << SCHED_LOAD_SHIFT) | ||
661 | |||
662 | #define SCHED_LOAD_SCALE_FUZZ (SCHED_LOAD_SCALE >> 5) | ||
656 | 663 | ||
657 | #ifdef CONFIG_SMP | 664 | #ifdef CONFIG_SMP |
658 | #define SD_LOAD_BALANCE 1 /* Do load balancing on this domain. */ | 665 | #define SD_LOAD_BALANCE 1 /* Do load balancing on this domain. */ |