diff options
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) | |||
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) |