Lines Matching refs:runtime
53 void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime)
56 rt_b->rt_runtime = runtime;
706 * We ran out of runtime, see if we can borrow some from our neighbours.
730 * Either all rqs have inf runtime and there's nothing to steal
762 * Ensure this RQ takes back all the runtime it lend to its neighbours.
784 * exactly the right amount of runtime to take out.
793 * and what we current have, that's the amount of runtime
831 * We cannot be left wanting - that would mean some runtime
838 * runtime - in which case borrowing doesn't make sense.
935 u64 runtime;
941 runtime = rt_rq->rt_runtime;
942 rt_rq->rt_time -= min(rt_rq->rt_time, overrun * runtime);
943 if (rt_rq->rt_throttled && rt_rq->rt_time < runtime) {
952 * 'runtime'.
1011 u64 runtime = sched_rt_runtime(rt_rq);
1017 if (runtime >= sched_rt_period(rt_rq)) {
1022 runtime = sched_rt_runtime(rt_rq);
1023 if (runtime == RUNTIME_INF) {
1027 if (rt_rq->rt_time > runtime) {
1031 * Don't actually throttle groups that have no runtime assigned
1056 * Update the current task's runtime statistics. Skip current tasks that
2915 u64 period, runtime;
2918 runtime = tg->rt_bandwidth.rt_runtime;
2922 runtime = d->rt_runtime;
2926 * Cannot have more runtime than the period.
2928 if (runtime > period && runtime != RUNTIME_INF) {
2933 * Ensure we don't starve existing RT tasks if runtime turns zero.
2935 if (rt_bandwidth_enabled() && !runtime && tg->rt_bandwidth.rt_runtime && tg_has_rt_tasks(tg)) {
2939 total = to_ratio(period, runtime);
2948 * The sum of our children's runtime should not exceed our own.
2953 runtime = child->rt_bandwidth.rt_runtime;
2957 runtime = d->rt_runtime;
2960 sum += to_ratio(period, runtime);
2970 static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime)
2977 .rt_runtime = runtime,
2992 * Disallowing the root group RT runtime is BAD, it would disallow the