Commit e26873bb authored by roel kluin's avatar roel kluin Committed by Ingo Molnar

sched: test runtime rather than period in global_rt_runtime()

Test runtime rather than period
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 94f56559
...@@ -834,7 +834,7 @@ static inline u64 global_rt_period(void) ...@@ -834,7 +834,7 @@ static inline u64 global_rt_period(void)
static inline u64 global_rt_runtime(void) static inline u64 global_rt_runtime(void)
{ {
if (sysctl_sched_rt_period < 0) if (sysctl_sched_rt_runtime < 0)
return RUNTIME_INF; return RUNTIME_INF;
return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC; return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment