Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109889
b: refs/heads/master
c: ec5d498
h: refs/heads/master
i:
  109887: be0ce95
v: v3
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Sep 11, 2008
1 parent 49be2cb commit df2799a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: baf25731e54d06eb13dc4eda78c6dc7da4ce84e8
refs/heads/master: ec5d498991e87c74730509508b25c3959192b7e7
6 changes: 6 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -8909,6 +8909,9 @@ static int sched_rt_global_constraints(void)
u64 rt_runtime, rt_period;
int ret = 0;

if (sysctl_sched_rt_period <= 0)
return -EINVAL;

rt_period = ktime_to_ns(tg->rt_bandwidth.rt_period);
rt_runtime = tg->rt_bandwidth.rt_runtime;

Expand All @@ -8925,6 +8928,9 @@ static int sched_rt_global_constraints(void)
unsigned long flags;
int i;

if (sysctl_sched_rt_period <= 0)
return -EINVAL;

spin_lock_irqsave(&def_rt_bandwidth.rt_runtime_lock, flags);
for_each_possible_cpu(i) {
struct rt_rq *rt_rq = &cpu_rq(i)->rt;
Expand Down

0 comments on commit df2799a

Please sign in to comment.