aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c3
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;