diff options
| author | Li Zefan <lizefan@huawei.com> | 2013-03-05 03:06:09 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-03-06 05:24:30 -0500 |
| commit | cc1f4b1f3faed9f2040eff2a75f510b424b3cf18 (patch) | |
| tree | c894d67bfca2ff5aebf09cc1f3cc8b0f8f88ddd6 /include/linux | |
| parent | 090b582f27ac7b6714661020033160130e5297bd (diff) | |
sched: Move SCHED_LOAD_SHIFT macros to kernel/sched/sched.h
They are used internally only.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/5135A771.4070104@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e880d7d115ef..f8826d04fb12 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -756,31 +756,6 @@ enum cpu_idle_type { | |||
| 756 | }; | 756 | }; |
| 757 | 757 | ||
| 758 | /* | 758 | /* |
| 759 | * Increase resolution of nice-level calculations for 64-bit architectures. | ||
| 760 | * The extra resolution improves shares distribution and load balancing of | ||
| 761 | * low-weight task groups (eg. nice +19 on an autogroup), deeper taskgroup | ||
| 762 | * hierarchies, especially on larger systems. This is not a user-visible change | ||
| 763 | * and does not change the user-interface for setting shares/weights. | ||
| 764 | * | ||
| 765 | * We increase resolution only if we have enough bits to allow this increased | ||
| 766 | * resolution (i.e. BITS_PER_LONG > 32). The costs for increasing resolution | ||
| 767 | * when BITS_PER_LONG <= 32 are pretty high and the returns do not justify the | ||
| 768 | * increased costs. | ||
| 769 | */ | ||
| 770 | #if 0 /* BITS_PER_LONG > 32 -- currently broken: it increases power usage under light load */ | ||
| 771 | # define SCHED_LOAD_RESOLUTION 10 | ||
| 772 | # define scale_load(w) ((w) << SCHED_LOAD_RESOLUTION) | ||
| 773 | # define scale_load_down(w) ((w) >> SCHED_LOAD_RESOLUTION) | ||
| 774 | #else | ||
| 775 | # define SCHED_LOAD_RESOLUTION 0 | ||
| 776 | # define scale_load(w) (w) | ||
| 777 | # define scale_load_down(w) (w) | ||
| 778 | #endif | ||
| 779 | |||
| 780 | #define SCHED_LOAD_SHIFT (10 + SCHED_LOAD_RESOLUTION) | ||
| 781 | #define SCHED_LOAD_SCALE (1L << SCHED_LOAD_SHIFT) | ||
| 782 | |||
| 783 | /* | ||
| 784 | * Increase resolution of cpu_power calculations | 759 | * Increase resolution of cpu_power calculations |
| 785 | */ | 760 | */ |
| 786 | #define SCHED_POWER_SHIFT 10 | 761 | #define SCHED_POWER_SHIFT 10 |
