Skip to content

Commit

Permalink
sched: test runtime rather than period in global_rt_runtime()
Browse files Browse the repository at this point in the history
Test runtime rather than period

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
roel kluin authored and Ingo Molnar committed Jul 28, 2008
1 parent 94f5655 commit e26873b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ static inline u64 global_rt_period(void)

static inline u64 global_rt_runtime(void)
{
if (sysctl_sched_rt_period < 0)
if (sysctl_sched_rt_runtime < 0)
return RUNTIME_INF;

return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
Expand Down

0 comments on commit e26873b

Please sign in to comment.