mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
sched: test runtime rather than period in global_rt_runtime()
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>
This commit is contained in:
parent
94f5655988
commit
e26873bb10
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue