aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-25 12:41:53 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-25 12:41:53 -0400
commit172ac3dbb7d3e528ac53d08a34df88d1ac53c534 (patch)
treef17de2a4a7a562792fd85a14bb1c278bb8c40804 /kernel/sched_fair.c
parent218050855ece4e923106ab614ac65afa0f618df3 (diff)
sched: cleanup, sched_granularity -> sched_min_granularity
due to adaptive granularity scheduling the role of sched_granularity has changed to "minimum granularity", so rename the variable (and the tunable) accordingly. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 0ba1e60f08d0..ee3771850aaf 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -40,7 +40,7 @@ unsigned int sysctl_sched_latency __read_mostly = 20000000ULL;
40 * Minimal preemption granularity for CPU-bound tasks: 40 * Minimal preemption granularity for CPU-bound tasks:
41 * (default: 2 msec, units: nanoseconds) 41 * (default: 2 msec, units: nanoseconds)
42 */ 42 */
43unsigned int sysctl_sched_granularity __read_mostly = 2000000ULL; 43unsigned int sysctl_sched_min_granularity __read_mostly = 2000000ULL;
44 44
45/* 45/*
46 * SCHED_BATCH wake-up granularity. 46 * SCHED_BATCH wake-up granularity.
@@ -258,7 +258,7 @@ sched_granularity(struct cfs_rq *cfs_rq)
258 258
259 if (nr > 1) { 259 if (nr > 1) {
260 gran = gran/nr - gran/nr/nr; 260 gran = gran/nr - gran/nr/nr;
261 gran = max(gran, sysctl_sched_granularity); 261 gran = max(gran, sysctl_sched_min_granularity);
262 } 262 }
263 263
264 return gran; 264 return gran;