aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-25 16:17:19 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-25 16:17:19 -0400
commit50c46637aa894f904e2fb39086a3d7732f68bd50 (patch)
treed8cceec7806eef62396eed7be95b06aa4b06f8ed /kernel/sched.c
parenta3ce8ea66ae9379235334a989ed78a1ea518b0b3 (diff)
sched: s/sched_latency/sched_min_granularity
runtime limit and wakeup granularity used to be a function of granularity and that was incorrect changed to sched_latency. Fix this to make wakeup granularity a function of min-granularity, and the runtime limit equal to latency. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index a40ab657ad19..9fe473a190de 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4921,8 +4921,8 @@ static inline void sched_init_granularity(void)
4921 if (sysctl_sched_latency > limit) 4921 if (sysctl_sched_latency > limit)
4922 sysctl_sched_latency = limit; 4922 sysctl_sched_latency = limit;
4923 4923
4924 sysctl_sched_runtime_limit = sysctl_sched_latency * 5; 4924 sysctl_sched_runtime_limit = sysctl_sched_latency;
4925 sysctl_sched_wakeup_granularity = sysctl_sched_latency / 2; 4925 sysctl_sched_wakeup_granularity = sysctl_sched_min_granularity / 2;
4926} 4926}
4927 4927
4928#ifdef CONFIG_SMP 4928#ifdef CONFIG_SMP