diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-08-25 18:41:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-08-25 18:41:53 +0200 |
commit | 172ac3dbb7d3e528ac53d08a34df88d1ac53c534 (patch) | |
tree | f17de2a4a7a562792fd85a14bb1c278bb8c40804 /kernel/sched.c | |
parent | 218050855ece4e923106ab614ac65afa0f618df3 (diff) | |
download | lwn-172ac3dbb7d3e528ac53d08a34df88d1ac53c534.tar.gz lwn-172ac3dbb7d3e528ac53d08a34df88d1ac53c534.zip |
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.c | 6 |
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) unsigned int factor = 1 + ilog2(num_online_cpus()); const unsigned long limit = 100000000; - sysctl_sched_granularity *= factor; - if (sysctl_sched_granularity > limit) - sysctl_sched_granularity = limit; + sysctl_sched_min_granularity *= factor; + if (sysctl_sched_min_granularity > limit) + sysctl_sched_min_granularity = limit; sysctl_sched_latency *= factor; if (sysctl_sched_latency > limit) |