aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-24 14:39:10 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-24 14:39:10 -0400
commit71fd37146385c8255bfd370f33ca81fe8c81e5a5 (patch)
tree63ef23a5290202c5619d7e3f3f9428d29d5b7db1 /kernel/sched.c
parent7c6c16f354cde4a48bd305b2587fc78257bcb936 (diff)
sched: remove HZ dependency from the granularity default
remove HZ dependency from the granularity default. Use 10 msec for the base granularity, 1 msec for wakeup granularity and 25 msec for batch wakeup granularity. (These defaults are close to the values that the default HZ=250 setting got previously, and thus it's the most common setting.) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 96e9b82246d2..e95ff22ed174 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4923,7 +4923,7 @@ static inline void sched_init_granularity(void)
4923 if (sysctl_sched_granularity > gran_limit) 4923 if (sysctl_sched_granularity > gran_limit)
4924 sysctl_sched_granularity = gran_limit; 4924 sysctl_sched_granularity = gran_limit;
4925 4925
4926 sysctl_sched_runtime_limit = sysctl_sched_granularity * 8; 4926 sysctl_sched_runtime_limit = sysctl_sched_granularity * 5;
4927 sysctl_sched_wakeup_granularity = sysctl_sched_granularity / 2; 4927 sysctl_sched_wakeup_granularity = sysctl_sched_granularity / 2;
4928} 4928}
4929 4929