diff options
author | Juri Lelli <juri.lelli@gmail.com> | 2014-02-11 03:24:26 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-02-21 15:27:10 -0500 |
commit | e9e7cb38c21c80c82af4b16608bb4c8c5ec6a28e (patch) | |
tree | 008372d34fb9a1f45f2b177704668c54a71e8c95 /kernel | |
parent | 4df1638cfaf9b2b7ad993979a41965acab9cd156 (diff) |
sched/core: Fix sched_rt_global_validate
Don't compare sysctl_sched_rt_runtime against sysctl_sched_rt_period if
the former is equal to RUNTIME_INF, otherwise disabling -rt bandwidth
management (with CONFIG_RT_GROUP_SCHED=n) fails.
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1392107067-19907-2-git-send-email-juri.lelli@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 24914488da41..98d33c105252 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -7475,7 +7475,8 @@ static int sched_rt_global_validate(void) | |||
7475 | if (sysctl_sched_rt_period <= 0) | 7475 | if (sysctl_sched_rt_period <= 0) |
7476 | return -EINVAL; | 7476 | return -EINVAL; |
7477 | 7477 | ||
7478 | if (sysctl_sched_rt_runtime > sysctl_sched_rt_period) | 7478 | if ((sysctl_sched_rt_runtime != RUNTIME_INF) && |
7479 | (sysctl_sched_rt_runtime > sysctl_sched_rt_period)) | ||
7479 | return -EINVAL; | 7480 | return -EINVAL; |
7480 | 7481 | ||
7481 | return 0; | 7482 | return 0; |