Lines Matching refs:cpu
18 cpumask_set_cpu(rq->cpu, rq->rd->rto_mask); in rt_set_overload()
37 cpumask_clear_cpu(rq->cpu, rq->rd->rto_mask); in rt_clear_overload()
154 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq() argument
156 return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu]; in sched_rt_period_rt_rq()
221 struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu) in sched_rt_period_rt_rq() argument
223 return &cpu_rq(cpu)->rt; in sched_rt_period_rt_rq()
564 cpupri_set(&rq->rd->cpupri, rq->cpu, in inc_rt_tasks()
623 cpupri_set(&rq->rd->cpupri, rq->cpu, in dec_rt_tasks()
794 int cpu = find_lowest_rq(p); in select_task_rq_rt() local
796 return (cpu == -1) ? task_cpu(p) : cpu; in select_task_rq_rt()
919 static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu) in pick_rt_task() argument
922 (cpu < 0 || cpumask_test_cpu(cpu, &p->cpus_allowed)) && in pick_rt_task()
929 static struct task_struct *pick_next_highest_task_rt(struct rq *rq, int cpu) in pick_next_highest_task_rt() argument
947 if (pick_rt_task(rq, p, cpu)) { in pick_next_highest_task_rt()
983 int cpu = task_cpu(task); in find_lowest_rq() local
1006 if (cpumask_test_cpu(cpu, lowest_mask)) in find_lowest_rq()
1007 return cpu; in find_lowest_rq()
1013 if (this_cpu == cpu) in find_lowest_rq()
1016 for_each_domain(cpu, sd) { in find_lowest_rq()
1044 int cpu; in find_lock_lowest_rq() local
1047 cpu = find_lowest_rq(task); in find_lock_lowest_rq()
1049 if ((cpu == -1) || (cpu == rq->cpu)) in find_lock_lowest_rq()
1052 lowest_rq = cpu_rq(cpu); in find_lock_lowest_rq()
1063 !cpumask_test_cpu(lowest_rq->cpu, in find_lock_lowest_rq()
1143 set_task_cpu(next_task, lowest_rq->cpu); in push_rt_task()
1176 int this_cpu = this_rq->cpu, ret = 0, cpu; in pull_rt_task() local
1185 for_each_cpu(cpu, this_rq->rd->rto_mask) { in pull_rt_task()
1186 if (this_cpu == cpu) in pull_rt_task()
1189 src_rq = cpu_rq(cpu); in pull_rt_task()
1349 cpupri_set(&rq->rd->cpupri, rq->cpu, rq->rt.highest_prio); in rq_online_rt()
1360 cpupri_set(&rq->rd->cpupri, rq->cpu, CPUPRI_INVALID); in rq_offline_rt()
1547 extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);
1549 static void print_rt_stats(struct seq_file *m, int cpu) in print_rt_stats() argument
1554 for_each_leaf_rt_rq(rt_rq, cpu_rq(cpu)) in print_rt_stats()
1555 print_rt_rq(m, cpu, rt_rq); in print_rt_stats()