Skip to content

Commit

Permalink
sched: increase the resolution of smpnice
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jul 9, 2007
1 parent 425e096 commit 9aa7b36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 9aa7b36

Please sign in to comment.