Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=546fe3c909b0a4235c7237c210da483eaaac1edc
Commit:     546fe3c909b0a4235c7237c210da483eaaac1edc
Parent:     a48da48b403319918a587be8b5d46fe1d186c2ac
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 9 11:16:51 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Thu Aug 9 11:16:51 2007 +0200

    sched: move the __update_rq_clock() call to scheduler_tick()
    
    move the __update_rq_clock() call from update_cpu_load() to
    scheduler_tick().
    
    ( identity transformation that causes no change in functionality. )
    
    this allows the direct use of rq->clock in ->task_tick() functions.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index b78b9d9..3f5d529 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1949,8 +1949,6 @@ static void update_cpu_load(struct rq *this_rq)
        struct load_stat *ls = &this_rq->ls;
        int i, scale;
 
-       __update_rq_clock(this_rq);
-
        this_rq->nr_load_updates++;
        if (unlikely(!(sysctl_sched_features & SCHED_FEAT_PRECISE_CPU_LOAD)))
                goto do_avg;
@@ -3301,6 +3299,7 @@ void scheduler_tick(void)
        struct task_struct *curr = rq->curr;
 
        spin_lock(&rq->lock);
+       __update_rq_clock(rq);
        update_cpu_load(rq);
        if (curr != rq->idle) /* FIXME: needed? */
                curr->sched_class->task_tick(rq, curr);
-
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