diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index dba878c73a08..081ece26803f 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -7714,9 +7714,6 @@ int tg_set_cfs_period(struct task_group *tg, long cfs_period_us) | |||
7714 | period = (u64)cfs_period_us * NSEC_PER_USEC; | 7714 | period = (u64)cfs_period_us * NSEC_PER_USEC; |
7715 | quota = tg->cfs_bandwidth.quota; | 7715 | quota = tg->cfs_bandwidth.quota; |
7716 | 7716 | ||
7717 | if (period <= 0) | ||
7718 | return -EINVAL; | ||
7719 | |||
7720 | return tg_set_cfs_bandwidth(tg, period, quota); | 7717 | return tg_set_cfs_bandwidth(tg, period, quota); |
7721 | } | 7718 | } |
7722 | 7719 | ||