Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;