public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH tip] sched/trivial: Remove cfs bandwidth period check in tg_set_cfs_period()
@ 2011-12-10 13:59 Kamalesh Babulal
  2011-12-12 13:05 ` Peter Zijlstra
  2011-12-21 11:43 ` [tip:sched/core] sched: " tip-bot for Kamalesh Babulal
  0 siblings, 2 replies; 5+ messages in thread
From: Kamalesh Babulal @ 2011-12-10 13:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Turner, Peter Zijlstra, Ingo Molnar

sched: Remove cfs bandwidth period check in tg_set_cfs_period()

Remove cfs bandwidth period check from tg_set_cfs_period.
Invalid bandwidth period's lower/upper limits are denoted
by min_cfs_quota_period/max_cfs_quota_period repsectively,
and are checked against valid period in tg_set_cfs_bandwidth().

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
-- 
 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 3c5b21e..57cf3ab 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7689,9 +7689,6 @@ int tg_set_cfs_period(struct task_group *tg, long cfs_period_us)
 	period = (u64)cfs_period_us * NSEC_PER_USEC;
 	quota = tg->cfs_bandwidth.quota;
 
-	if (period <= 0)
-		return -EINVAL;
-
 	return tg_set_cfs_bandwidth(tg, period, quota);
 }
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-21 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-10 13:59 [PATCH tip] sched/trivial: Remove cfs bandwidth period check in tg_set_cfs_period() Kamalesh Babulal
2011-12-12 13:05 ` Peter Zijlstra
2011-12-13 12:40   ` Paul Turner
2011-12-13 12:53     ` Peter Zijlstra
2011-12-21 11:43 ` [tip:sched/core] sched: " tip-bot for Kamalesh Babulal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox