Commit 6e1938d3 authored by Ingo Molnar's avatar Ingo Molnar

sched: remove rt_overload()

remove rt_overload() - it's an unnecessary indirection.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 84de4274
...@@ -17,11 +17,6 @@ static inline int rt_overloaded(void) ...@@ -17,11 +17,6 @@ static inline int rt_overloaded(void)
return atomic_read(&rto_count); return atomic_read(&rto_count);
} }
static inline cpumask_t *rt_overload(void)
{
return &rt_overload_mask;
}
static inline void rt_set_overload(struct rq *rq) static inline void rt_set_overload(struct rq *rq)
{ {
rq->rt.overloaded = 1; rq->rt.overloaded = 1;
...@@ -590,7 +585,6 @@ static int pull_rt_task(struct rq *this_rq) ...@@ -590,7 +585,6 @@ static int pull_rt_task(struct rq *this_rq)
struct task_struct *next; struct task_struct *next;
struct task_struct *p; struct task_struct *p;
struct rq *src_rq; struct rq *src_rq;
cpumask_t *rto_cpumask;
int this_cpu = this_rq->cpu; int this_cpu = this_rq->cpu;
int cpu; int cpu;
int ret = 0; int ret = 0;
...@@ -608,9 +602,7 @@ static int pull_rt_task(struct rq *this_rq) ...@@ -608,9 +602,7 @@ static int pull_rt_task(struct rq *this_rq)
next = pick_next_task_rt(this_rq); next = pick_next_task_rt(this_rq);
rto_cpumask = rt_overload(); for_each_cpu_mask(cpu, rt_overload_mask) {
for_each_cpu_mask(cpu, *rto_cpumask) {
if (this_cpu == cpu) if (this_cpu == cpu)
continue; continue;
......
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