From 9164261dcd2da134b52d49b0f80940e663ec26e8 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 9 Jul 2007 18:51:58 +0200 Subject: [PATCH] --- yaml --- r: 58267 b: refs/heads/master c: 9aa7b369819940cb1f3c74ba210516739a32ad95 h: refs/heads/master i: 58265: 6858d6cea05d3b4fa2fe65e0011a864cb3adcec3 58263: 84b6a9c559065a93c161b9d04215a18bdea540f0 v: v3 --- [refs] | 2 +- trunk/include/linux/sched.h | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 52b6a4d082f0..231ec875511c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 425e0968a25fa3f111f9919964cac079738140b5 +refs/heads/master: 9aa7b369819940cb1f3c74ba210516739a32ad95 diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index 61a111fe2b7a..d5084e7c48cf 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -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. */