提交 e26873bb 编写于 作者: R roel kluin 提交者: Ingo Molnar

sched: test runtime rather than period in global_rt_runtime()

Test runtime rather than period
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 94f56559
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册