diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:16 -0500 |
commit | 6e1938d3ad58c940ec4119d387dd92a787cb238c (patch) | |
tree | c879b423cb18a7961fd99e577b2ef3dfc8539179 /kernel | |
parent | 84de4274893691aa8c471a1f7336d51e555d23a0 (diff) |
sched: remove rt_overload()
remove rt_overload() - it's an unnecessary indirection.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_rt.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 1a2d8f0aa659..deff0c77d705 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -17,11 +17,6 @@ static inline int rt_overloaded(void) | |||
17 | return atomic_read(&rto_count); | 17 | return atomic_read(&rto_count); |
18 | } | 18 | } |
19 | 19 | ||
20 | static inline cpumask_t *rt_overload(void) | ||
21 | { | ||
22 | return &rt_overload_mask; | ||
23 | } | ||
24 | |||
25 | static inline void rt_set_overload(struct rq *rq) | 20 | static inline void rt_set_overload(struct rq *rq) |
26 | { | 21 | { |
27 | rq->rt.overloaded = 1; | 22 | rq->rt.overloaded = 1; |
@@ -590,7 +585,6 @@ static int pull_rt_task(struct rq *this_rq) | |||
590 | struct task_struct *next; | 585 | struct task_struct *next; |
591 | struct task_struct *p; | 586 | struct task_struct *p; |
592 | struct rq *src_rq; | 587 | struct rq *src_rq; |
593 | cpumask_t *rto_cpumask; | ||
594 | int this_cpu = this_rq->cpu; | 588 | int this_cpu = this_rq->cpu; |
595 | int cpu; | 589 | int cpu; |
596 | int ret = 0; | 590 | int ret = 0; |
@@ -608,9 +602,7 @@ static int pull_rt_task(struct rq *this_rq) | |||
608 | 602 | ||
609 | next = pick_next_task_rt(this_rq); | 603 | next = pick_next_task_rt(this_rq); |
610 | 604 | ||
611 | rto_cpumask = rt_overload(); | 605 | for_each_cpu_mask(cpu, rt_overload_mask) { |
612 | |||
613 | for_each_cpu_mask(cpu, *rto_cpumask) { | ||
614 | if (this_cpu == cpu) | 606 | if (this_cpu == cpu) |
615 | continue; | 607 | continue; |
616 | 608 | ||