Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6e1938d3ad58c940ec4119d387dd92a787cb238c
Commit:     6e1938d3ad58c940ec4119d387dd92a787cb238c
Parent:     84de4274893691aa8c471a1f7336d51e555d23a0
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 25 21:08:16 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 21:08:16 2008 +0100

    sched: remove rt_overload()
    
    remove rt_overload() - it's an unnecessary indirection.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 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 1a2d8f0..deff0c7 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -17,11 +17,6 @@ static inline int rt_overloaded(void)
        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)
 {
        rq->rt.overloaded = 1;
@@ -590,7 +585,6 @@ static int pull_rt_task(struct rq *this_rq)
        struct task_struct *next;
        struct task_struct *p;
        struct rq *src_rq;
-       cpumask_t *rto_cpumask;
        int this_cpu = this_rq->cpu;
        int cpu;
        int ret = 0;
@@ -608,9 +602,7 @@ static int pull_rt_task(struct rq *this_rq)
 
        next = pick_next_task_rt(this_rq);
 
-       rto_cpumask = rt_overload();
-
-       for_each_cpu_mask(cpu, *rto_cpumask) {
+       for_each_cpu_mask(cpu, rt_overload_mask) {
                if (this_cpu == cpu)
                        continue;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to