aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.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.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.c')
-rw-r--r--kernel/sched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index da26f46d50d7..a40ab657ad19 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4913,9 +4913,9 @@ static inline void sched_init_granularity(void)
4913 unsigned int factor = 1 + ilog2(num_online_cpus()); 4913 unsigned int factor = 1 + ilog2(num_online_cpus());
4914 const unsigned long limit = 100000000; 4914 const unsigned long limit = 100000000;
4915 4915
4916 sysctl_sched_granularity *= factor; 4916 sysctl_sched_min_granularity *= factor;
4917 if (sysctl_sched_granularity > limit) 4917 if (sysctl_sched_min_granularity > limit)
4918 sysctl_sched_granularity = limit; 4918 sysctl_sched_min_granularity = limit;
4919 4919
4920 sysctl_sched_latency *= factor; 4920 sysctl_sched_latency *= factor;
4921 if (sysctl_sched_latency > limit) 4921 if (sysctl_sched_latency > limit)